mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 19:11:00 +00:00
🐛 fix aiohttp config trierule bugs
This commit is contained in:
@ -303,7 +303,12 @@ async def handle_event(bot: "Bot", event: "Event") -> None:
|
||||
return
|
||||
|
||||
# Trie Match
|
||||
TrieRule.get_value(bot, event, state)
|
||||
try:
|
||||
TrieRule.get_value(bot, event, state)
|
||||
except Exception as e:
|
||||
logger.opt(colors=True, exception=e).warning(
|
||||
"Error while parsing command for event"
|
||||
)
|
||||
|
||||
break_flag = False
|
||||
for priority in sorted(matchers.keys()):
|
||||
|
Reference in New Issue
Block a user