aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-13 19:36:04 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-13 19:36:04 +0200
commite948bd30102782427ac9df0c612b1581177f559c (patch)
tree788a3bf23a214f06bbedcc0139f1dd82e79ed8c1
parent98660c5cc63259ae2d308bb390442a1a2f58cf99 (diff)
Don't try access source before it's filled
-rwxr-xr-xgbp/scripts/buildpackage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/buildpackage.py b/gbp/scripts/buildpackage.py
index 13f7bf5..07153e8 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