X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=c144624a21b13b2872b455badccfd8279bb31efb;hb=751e8fbc852d3810fc1588cba7677de78ba419db;hp=40e47c63e45830887d213f10d8d381ebd75457a3;hpb=a221878898a1ce8839fbc3280f1286dc724067f3;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 40e47c63..c144624a 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1022,8 +1022,8 @@ def parse_args(Options): suite_ids_list = [] for suitename in split_args(Options["Suite"]): suite = get_suite(suitename, session=session) - if suite.suite_id is None: - warn("suite '%s' not recognised." % (suite.suite_name)) + if not suite or suite.suite_id is None: + warn("suite '%s' not recognised." % (suite and suite.suite_name or suitename)) else: suite_ids_list.append(suite.suite_id) if suite_ids_list: