修复一些错误捕获不到的问题

This commit is contained in:
John Smith 2019-06-21 17:45:21 +08:00
parent 0d63944da4
commit 003d89e976

View File

@ -409,7 +409,7 @@ class BLiveClient:
await self._handle_message(message.data)
except BaseException as e:
if type(e) in (
asyncio.CancelledError, aiohttp.ClientConnectorError,
asyncio.CancelledError, aiohttp.ClientConnectionError,
asyncio.TimeoutError, ssl_.SSLError
):
raise
@ -420,7 +420,7 @@ class BLiveClient:
except asyncio.CancelledError:
break
except (aiohttp.ClientConnectorError, asyncio.TimeoutError):
except (aiohttp.ClientConnectionError, asyncio.TimeoutError):
# 重连
pass
except ssl_.SSLError: