#2150 translate exceptions to GenericError
Merged 3 years ago by tkopecek. Opened 3 years ago by tkopecek.
tkopecek/koji issue2067  into  master

file modified
+5 -1
@@ -12506,7 +12506,11 @@ 

              method = getattr(self, methodName)

          except AttributeError:

              raise koji.GenericError("method %s doesn't exist" % methodName)

-         results = method(*args, **kw)

+         try:

+             results = method(*args, **kw)

+         except Exception as ex:

+             raise koji.GenericError("method %s raised an exception (%s)" % (methodName, str(ex)))

+ 

          if results is None:

              return 0, None

          elif isinstance(results, list):

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

3 years ago

Commit 8f3885c fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

3 years ago