Fix wrong error message
Fixes: https://pagure.io/koji/issue/1210 for/else resulted in error with correct arguments.
This commit is contained in:
parent
494c539254
commit
2ca3284447
1 changed files with 1 additions and 1 deletions
|
|
@ -6016,7 +6016,7 @@ def handle_free_task(goptions, session, args):
|
|||
tlist.append(int(task_id))
|
||||
except ValueError:
|
||||
parser.error(_("task-id must be an integer"))
|
||||
else:
|
||||
if not tlist:
|
||||
parser.error(_("please specify at least one task-id"))
|
||||
for task_id in tlist:
|
||||
session.freeTask(task_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue