ENH: consistent operation of formatExceptionInfo + unittest for it

This commit is contained in:
Yaroslav Halchenko
2013-05-09 22:46:59 -04:00
parent 728aaec6b8
commit 90d6a4a6cd
4 changed files with 56 additions and 7 deletions

View File

@@ -70,8 +70,8 @@ class RequestHandler(asynchat.async_chat):
self.close_when_done()
def handle_error(self):
e1,e2 = helpers.formatExceptionInfo()
logSys.error("Unexpected communication error: "+e2)
e1, e2 = helpers.formatExceptionInfo()
logSys.error("Unexpected communication error: %s" % str(e2))
logSys.error(traceback.format_exc().splitlines())
self.close()