projects
/
dak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a221878
)
Fix traceback when given suite is not recognized
author
Luca Falavigna
<dktrkranz@debian.org>
Tue, 4 Oct 2011 09:26:20 +0000
(09:26 +0000)
committer
Luca Falavigna
<dktrkranz@debian.org>
Tue, 4 Oct 2011 09:26:20 +0000
(09:26 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
daklib/utils.py
patch
|
blob
|
history
diff --git
a/daklib/utils.py
b/daklib/utils.py
index 40e47c63e45830887d213f10d8d381ebd75457a3..c144624a21b13b2872b455badccfd8279bb31efb 100755
(executable)
--- 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 suite
name))
else:
suite_ids_list.append(suite.suite_id)
if suite_ids_list: