#71 Exit nicely if Fedora Release does not exist in Bodhi
Merged 5 years ago by frantisekz. Opened 5 years ago by frantisekz.
fedora-qa/ frantisekz/blockerbugs not_existing_bodhi_release  into  develop

@@ -123,7 +123,7 @@ 

          except bodhi.BodhiClientException, e:

              # ignore invalid release error so it doesn't blow up when

              # bug trackers for a release not present in bodhi are added

-             if 'Invalid release' in e.message:

+             if 'Invalid releases' in str(e):

                  self.log.exception(e)

                  return []

              else:

Bodhi Client changed it's exception format.

Adapt to the changes, so we won't crash when some Release does not exist in Bodhi yet

+1! This has been annoying me a bit.

Pull-Request has been merged by frantisekz

5 years ago
Metadata