Fix wrong error message

Fixes: https://pagure.io/koji/issue/1210

for/else resulted in error with correct arguments.
This commit is contained in:
Tomas Kopecek 2019-01-28 11:03:51 +01:00 committed by Mike McLean
parent 494c539254
commit 2ca3284447

View file

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