[dak/master 1/4] Cope with missing suite
Signed-off-by: Mark Hymers <mhy@debian.org>
---
dak/cruft_report.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dak/cruft_report.py b/dak/cruft_report.py
index 5b199dc..b200d79 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()
--
1.7.2.5
Reply to: