backward-compatible try/except

This commit is contained in:
Tomas Kopecek 2017-04-10 16:38:14 +02:00
parent 5a0b1d07c2
commit ae8adfc4e7

View file

@ -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 "