mirror of https://github.com/python/cpython.git
Improve error message if rpc'l localcall() fails with unexpected
exception.
This commit is contained in:
parent
5c3df35b6b
commit
e852c194e3
|
@ -199,7 +199,9 @@ def localcall(self, seq, request):
|
||||||
except socket.error:
|
except socket.error:
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
self.debug("localcall:EXCEPTION")
|
msg = "*** Internal Error: rpc.py:SocketIO.localcall()\n\n"\
|
||||||
|
" Object: %s \n Method: %s \n Args: %s\n"
|
||||||
|
print>>sys.__stderr__, msg % (oid, method, args)
|
||||||
traceback.print_exc(file=sys.__stderr__)
|
traceback.print_exc(file=sys.__stderr__)
|
||||||
return ("EXCEPTION", None)
|
return ("EXCEPTION", None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue