X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=c144624a21b13b2872b455badccfd8279bb31efb;hb=491cfc6d1fcd6e70cd088c1b1a41999a3fb3cebb;hp=40e47c63e45830887d213f10d8d381ebd75457a3;hpb=f7e8ab5cc1ef088763a6e0f2b0cdba9ec2b63c87;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: