From 9ddeb56b840ea144239c1b6c81b82559ca9fe09e Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 6 Oct 2011 10:45:10 -0400 Subject: [PATCH] Handle blueprints with empty whiteboards. Fix bug 868377 Change-Id: I2e87e2ff380c2309b25321d22356a5b91ffd3de6 --- gerrit/update_blueprint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gerrit/update_blueprint.py b/gerrit/update_blueprint.py index 59b7a144..0049a83a 100755 --- a/gerrit/update_blueprint.py +++ b/gerrit/update_blueprint.py @@ -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)],