diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-04-13 19:36:04 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-04-13 19:36:04 +0200 |
commit | e948bd30102782427ac9df0c612b1581177f559c (patch) | |
tree | 788a3bf23a214f06bbedcc0139f1dd82e79ed8c1 | |
parent | 98660c5cc63259ae2d308bb390442a1a2f58cf99 (diff) | |
download | git-buildpackage-e948bd30102782427ac9df0c612b1581177f559c.tar.gz git-buildpackage-e948bd30102782427ac9df0c612b1581177f559c.tar.bz2 git-buildpackage-e948bd30102782427ac9df0c612b1581177f559c.zip |
Don't try access source before it's filled
-rwxr-xr-x | gbp/scripts/buildpackage.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py index 13f7bf50..07153e89 100755 --- a/gbp/scripts/buildpackage.py +++ b/gbp/scripts/buildpackage.py @@ -587,9 +587,9 @@ def main(argv): if options.export_dir and options.purge and not retval: RemoveTree(export_dir)() - if source.changelog and not gbp.notifications.notify(source.changelog, - not retval, - options.notify): + if source and not gbp.notifications.notify(source.changelog, + not retval, + options.notify): gbp.log.err("Failed to send notification") retval = 1 |