Commit 84e6da6f authored by Sebastien Robin's avatar Sebastien Robin

handle Fault error when sending results to master

This fix is already applied to erp5.util.testnode, we duplicate
the fix. The code will move to library soon
parent 6be5aed8
...@@ -39,7 +39,7 @@ def safeRpcCall(function, *args): ...@@ -39,7 +39,7 @@ def safeRpcCall(function, *args):
while True: while True:
try: try:
return function(*xmlrpc_arg_list) return function(*xmlrpc_arg_list)
except (socket.error, xmlrpclib.ProtocolError), e: except (socket.error, xmlrpclib.ProtocolError, xmlrpclib.Fault), e:
print >>sys.stderr, e print >>sys.stderr, e
pprint.pprint(args, file(function._Method__name, 'w')) pprint.pprint(args, file(function._Method__name, 'w'))
time.sleep(retry) time.sleep(retry)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment