From 1c1ca25d679c783cd061ede8256cb4627a0da227 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sat, 17 Apr 2021 23:45:12 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/essential.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ATRI/plugins') diff --git a/ATRI/plugins/essential.py b/ATRI/plugins/essential.py index 9052ca7..4d220fc 100644 --- a/ATRI/plugins/essential.py +++ b/ATRI/plugins/essential.py @@ -93,7 +93,10 @@ async def _check_block(matcher: Matcher, event: MessageEvent, state: T_State) -> None: user = str(event.user_id) - msg = str(event.message) + try: + msg = str(event.message) + except: + msg = "" if not sv.BlockSystem.auth_user(user): raise IgnoredException(f'Block user: {user}') -- cgit v1.2.3