mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Improve error message if rpc'l localcall() fails with unexpected
exception.
This commit is contained in:
parent
5c3df35b6b
commit
e852c194e3
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ class SocketIO(object):
|
||||||
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…
Add table
Add a link
Reference in a new issue