From: Mark Hymers Date: Sat, 30 Jul 2011 07:12:29 +0000 (+0100) Subject: Cope with missing suite X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2594693e0cdf06fe7f88e3daa811d5b1b7d5cddd;p=dak Cope with missing suite Signed-off-by: Mark Hymers --- diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 5b199dca..b200d793 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -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()