]> git.decadent.org.uk Git - dak.git/commitdiff
Cope with missing suite
authorMark Hymers <mhy@debian.org>
Sat, 30 Jul 2011 07:12:29 +0000 (08:12 +0100)
committerMark Hymers <mhy@debian.org>
Sat, 30 Jul 2011 07:12:29 +0000 (08:12 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/cruft_report.py

index 5b199dcab8de5756ec347f9ef96f349f63ae8025..b200d7936a367bc5feb505aba11b5b1da2c34b63 100755 (executable)
@@ -556,6 +556,9 @@ def main ():
     nfu_packages = {}
 
     suite = get_suite(Options["Suite"].lower(), session)
+    if not suite:
+        utils.fubar("Cannot find suite %s" % Options["Suite"].lower())
+
     suite_id = suite.suite_id
     suite_name = suite.suite_name.lower()