#52 TaskWatcher.update crashes when task id does not exist in Koji
Closed: Fixed None Opened 7 years ago by cqi.

Line[1] is getting a task info by calling getTaskInfo, and expect the return value is either a None or a dict containing task info. However, if task id does not exist, exception GenericError: query returned no rows is raised instead of returning None, and this error is not handled properly.

[1] https://pagure.io/rpkg/blob/master/f/src/pyrpkg/cli.py#_1513


Login to comment on this ticket.

Metadata