Skip to content
Snippets Groups Projects
Commit 2b5d5c9c authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed error with sjrpc proxy exception translation

This actually fix the "'module' object has no attribute 'get'" error.
parent 056a4e26
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class ConnectionProxy(object):
try:
returned = self.connection.call(name, *args, **kwargs)
except RpcError as err:
expt = __builtins__.get(err.exception)
expt = getattr(__builtins__, err.exception)
if expt is not None:
raise expt(err.message)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment