use print function everywhere
This commit is contained in:
parent
6128204714
commit
08beabe847
1 changed files with 8 additions and 8 deletions
16
cli/koji
16
cli/koji
|
|
@ -7231,23 +7231,23 @@ def handle_save_failed_tree(options, session, args):
|
|||
except koji.GenericError as e:
|
||||
m = str(e)
|
||||
if 'Only failed tasks can upload their buildroots.' in m:
|
||||
print _("Only failed tasks can upload their buildroots.")
|
||||
print(_("Only failed tasks can upload their buildroots."))
|
||||
elif 'tasks can upload their buildroots (Task' in m:
|
||||
print _("Task of this type has disabled support for uploading" \
|
||||
" buildroot. (configurable on hub)")
|
||||
print(_("Task of this type has disabled support for uploading" \
|
||||
" buildroot. (configurable on hub)"))
|
||||
elif 'Invalid method' in m:
|
||||
print _("* The save_failed_tree plugin appears to not be installed" \
|
||||
" on the koji hub. Please contact the administrator.")
|
||||
print(_("* The save_failed_tree plugin appears to not be installed" \
|
||||
" on the koji hub. Please contact the administrator."))
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
tb_str = ''.join(traceback.format_exception(*sys.exc_info()))
|
||||
logger.debug(tb_str)
|
||||
return 1
|
||||
except koji.ActionNotAllowed:
|
||||
print _("Only task owner or admin can run this task.")
|
||||
print(_("Only task owner or admin can run this task."))
|
||||
return 1
|
||||
if not opts.quiet:
|
||||
print "Created task:", task_id
|
||||
print "Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)
|
||||
print("Created task:", task_id)
|
||||
print("Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id))
|
||||
|
||||
if opts.nowait:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue