Use IOError to catch more exceptions
This commit is contained in:
parent
1b9860ba1e
commit
455d2af251
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ class Connection:
|
|||
return True
|
||||
|
||||
except (websockets.InvalidHandshake, websockets.InvalidStatusCode,
|
||||
socket.gaierror, asyncio.TimeoutError):
|
||||
OSError, asyncio.TimeoutError):
|
||||
logger.debug("Connection failed")
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue