backward-compatible try/except
This commit is contained in:
parent
5a0b1d07c2
commit
ae8adfc4e7
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -7394,7 +7394,7 @@ def handle_save_failed_tree(options, session, args):
|
|||
|
||||
try:
|
||||
task_id = session.saveFailedTree(br_id, opts.full)
|
||||
except koji.GenericError as e:
|
||||
except koji.GenericError, e:
|
||||
m = str(e)
|
||||
if 'Invalid method' in m:
|
||||
print(_("* The save_failed_tree plugin appears to not be "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue