define exc for unhandled exception

This commit is contained in:
chummm 2013-12-27 00:17:39 +00:00
parent 76f113b751
commit 333249c033
1 changed files with 1 additions and 0 deletions

View File

@ -1011,6 +1011,7 @@ class WebSocketServer(object):
self.msg("In exit")
break
except Exception:
_, exc, _ = sys.exc_info()
self.msg("handler exception: %s", str(exc))
self.vmsg("exception", exc_info=True)