Improve error message if rpc'l localcall() fails with unexpected

exception.
This commit is contained in:
Kurt B. Kaiser 2004-12-23 04:39:55 +00:00
parent 5c3df35b6b
commit e852c194e3
1 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,9 @@ def localcall(self, seq, request):
except socket.error:
raise
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__)
return ("EXCEPTION", None)