Always raise RPCException in RPCExecute

So when calling RPCExecute without processing exception, all exceptions can be
catch with RPCException.

Closes #12874
(grafted from 372dbf53977e872ae62dbc8d6ce5bdc3bcacec69)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-04-14 11:07:33 +02:00
1 parent 0e197d5eec
commit e9c214e303
1 file changed
+1 -1
+1 -1
View File
@@ -1254,7 +1254,7 @@ class RPCProgress(object):
def return_():
if self.exception:
raise self.exception
raise RPCException(self.exception)
else:
return self.res