Skip to content

Commit

Permalink
Try except missing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Oct 15, 2024
1 parent 84bc082 commit f242672
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tbot/twitch_bot/tasks/filter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from ..bot_base import bot
from .. import filters
from tbot import logger

from .. import filters
from ..bot_base import bot


@bot.on('PRIVMSG')
async def message(nick, target, message, **kwargs):
filters_ = (
Expand All @@ -18,5 +20,5 @@ async def message(nick, target, message, **kwargs):
try:
if await f(target, message, kwargs):
return True
except:
except Exception:
logger.exception('filter')

0 comments on commit f242672

Please sign in to comment.