Default to no series in update_bug.py

In I128b48d it was assumed that the series variable was already set
to a default boolean false value before testing it, but this was not
the case. Add that initial false state as a None default.

Change-Id: Ifddd9ad150aaec2db375f44f2d62fe69f6684e52
This commit is contained in:
Jeremy Stanley 2015-07-01 20:27:01 +00:00
parent a7215c1e68
commit b81245f04e
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ def process_bugtask(launchpad, task, git_log, args):
"""Apply changes to lp bug tasks, based on hook / branch."""
bugtask = task.lp_task
series = None
if args.hook == "change-abandoned":
add_change_abandoned_message(bugtask, args.change_url,