Raise the original RPCException when handling it in RPCProgress

Closes #13385
This commit is contained in:
Nicolas Évrard
2024-09-08 17:25:20 +02:00
parent 8b1b2ceefe
commit aa56b367d2
+3 -1
View File
@@ -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