From 9c5570f58cdbfa9a38c31ca14adfa32f9bb3f654 Mon Sep 17 00:00:00 2001 From: William Kray Date: Tue, 17 Jun 2025 15:53:56 -0700 Subject: [PATCH] better error handling of banlist checks on room join --- community/bot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/community/bot.py b/community/bot.py index 3f601e1..04dfd4d 100644 --- a/community/bot.py +++ b/community/bot.py @@ -823,7 +823,11 @@ class CommunityBot(Plugin): if evt.room_id not in space_rooms: return - on_banlist = await self.check_if_banned(evt.sender) + try: + on_banlist = await self.check_if_banned(evt.sender) + except Exception as e: + self.log.error(f"Failed to check if {evt.sender} is banned: {e}") + on_banlist = False if on_banlist: await self.ban_this_user(evt.sender) return