Handle blueprints with empty whiteboards.

Fix bug 868377

Change-Id: I2e87e2ff380c2309b25321d22356a5b91ffd3de6
This commit is contained in:
James E. Blair
2011-10-06 10:45:10 -04:00
parent 696a14bfe0
commit 9ddeb56b84

View File

@@ -68,7 +68,10 @@ def update_spec(launchpad, project, name, subject, link, topic=None):
spec = launchpad.projects[project].getSpecification(name=name)
if not spec: return
wb = spec.whiteboard.strip()
if spec.whiteboard:
wb = spec.whiteboard.strip()
else:
wb = ''
changed = False
if topic:
topiclink = '%s/#q,topic:%s,n,z' % (link[:link.find('/',8)],