Raise the original RPCException when handling it in RPCProgress
Closes #13385
This commit is contained in:
@@ -1323,7 +1323,9 @@ class RPCProgress(object):
|
||||
|
||||
def return_():
|
||||
if self.exception:
|
||||
raise RPCException(self.exception)
|
||||
if not isinstance(self.exception, RPCException):
|
||||
raise RPCException(self.exception)
|
||||
raise self.exception
|
||||
else:
|
||||
return self.res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user