From d8f7f6b7828069cb6c1fd13f756cfd891f0b1a46 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 19 Dec 2021 18:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E4=B8=9A=E5=8A=A1=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=A2=AB=E5=81=9C=E6=AD=A2=E6=97=B6=E4=B8=8D=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=B6=88=E6=81=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blivedm/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blivedm/client.py b/blivedm/client.py index 8db237e..74bf5c1 100644 --- a/blivedm/client.py +++ b/blivedm/client.py @@ -540,6 +540,8 @@ class BLiveClient: try: body = json.loads(body.decode('utf-8')) await self._handle_command(body) + except asyncio.CancelledError: + raise except Exception: logger.error('room=%d, body=%s', self.room_id, body) raise