mirror of
https://github.com/xfgryujk/blivedm.git
synced 2024-12-26 12:50:13 +08:00
修复一些错误捕获不到的问题
This commit is contained in:
parent
0d63944da4
commit
003d89e976
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user