handle OSErrors, too
This commit is contained in:
parent
0c59caa230
commit
aa7212c642
@ -78,7 +78,9 @@ class WebSocketConnection(object):
|
||||
self.handler.wfile.write(header)
|
||||
self.handler.wfile.flush()
|
||||
except ValueError:
|
||||
logger.exception("while writing close frame:")
|
||||
logger.exception("ValueError while writing close frame:")
|
||||
except OSError:
|
||||
logger.exception("OSError while writing close frame:")
|
||||
|
||||
try:
|
||||
self.handler.finish()
|
||||
|
Loading…
Reference in New Issue
Block a user