#53 handle exception from getTaskInfo correctly
Merged by lsedlar. Opened by cqi.
cqi/rpkg handle-exception-from-getTaskInfo-correctly  into  master

Download 53.patch

koji.GenericError is raised from getTaskInfo instead of returning None,
if a task id does not exist in Koji.

Fix #52

Signed-off-by: Chenxiong Qi cqi@redhat.com

@lsedlar please review

Handling the exception would be good. I think it should still handle None, as the koji code can in my opinion return it in some cases.

Handling the exception would be good. I think it should still handle None, as the koji code can in my opinion return it in some cases.

I tracked the execution into Koji. There are two results from getTaskInfo

  • raises GenericError instead of returning None, if the passed task id does not exist in Koji database.
  • a dict containing task info if passed task id is found

Pull-Request has been merged by lsedlar

Metadata