summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-04-17 23:45:12 +0800
committerGitHub <[email protected]>2021-04-17 23:45:12 +0800
commit1c1ca25d679c783cd061ede8256cb4627a0da227 (patch)
tree2a5ef7aaef484ddc2f9689a86018b2886327b3b5
parenta2296136a226e926a3eb960ac60d60d7af4d6765 (diff)
downloadATRI-1c1ca25d679c783cd061ede8256cb4627a0da227.tar.gz
ATRI-1c1ca25d679c783cd061ede8256cb4627a0da227.tar.bz2
ATRI-1c1ca25d679c783cd061ede8256cb4627a0da227.zip
🐛 临时修复
-rw-r--r--ATRI/plugins/essential.py5
1 files changed, 4 insertions, 1 deletions
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}')