#1045 cli: [free-task] raise error when no task-id specified
Merged 3 years ago by mikem. Opened 3 years ago by julian8628.
julian8628/koji issue/1044  into  master

file modified
+2 -1
@@ -5988,7 +5988,8 @@ 

              tlist.append(int(task_id))

          except ValueError:

              parser.error(_("task-id must be an integer"))

-             assert False  # pragma: no cover

+     else:

+         parser.error(_("please specify one argument as task-id at least"))

      for task_id in tlist:

          session.freeTask(task_id)

  

Tested and it is working. Thank you.

Commit f6e4995 fixes this pull-request

Pull-Request has been merged by mikem

3 years ago