From e948bd30102782427ac9df0c612b1581177f559c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sat, 13 Apr 2013 19:36:04 +0200 Subject: Don't try access source before it's filled --- gbp/scripts/buildpackage.py | 6 +++--- 1 file 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 -- cgit v1.2.3