diff options
Diffstat (limited to 'ATRI/plugins')
-rw-r--r-- | ATRI/plugins/essential.py | 5 |
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}') |