Log BrokenPipeError as warning

This commit is contained in:
shortcutme 2020-03-20 18:52:18 +01:00
parent 723d1f4370
commit f41d022038
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class UiWSGIHandler(WebSocketHandler):
err_name = "UiWSGIHandler websocket" if "HTTP_UPGRADE" in self.environ else "UiWSGIHandler"
try:
super(UiWSGIHandler, self).run_application()
except (ConnectionAbortedError, ConnectionResetError) as err:
except (ConnectionAbortedError, ConnectionResetError, BrokenPipeError) as err:
logging.warning("%s connection error: %s" % (err_name, err))
except Exception as err:
logging.warning("%s error: %s" % (err_name, Debug.formatException(err)))