Fix exception capture.
This commit is contained in:
parent
6d06b7900c
commit
9bd517fd4f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class MessageServer:
|
|||
self._client_connected(client)
|
||||
self._connections.add(client)
|
||||
threading.Thread(target=self._read_message, args=(client,)).start()
|
||||
except ConnectionAbortedError or OSError as e:
|
||||
except (ConnectionAbortedError, OSError) as e:
|
||||
if self._is_running:
|
||||
# if exception occurred during normal execution
|
||||
logger.error(e)
|
||||
|
|
Loading…
Reference in a new issue