From 9801a8cebd8d0c7a7a0118abf7949fe1907efaaa Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Fri, 9 Apr 2021 12:26:27 +0800 Subject: [PATCH] :art: format code --- nonebot/message.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nonebot/message.py b/nonebot/message.py index 5292ff5d..5b683cd1 100644 --- a/nonebot/message.py +++ b/nonebot/message.py @@ -7,7 +7,7 @@ NoneBot 内部处理并按优先级分发事件给所有事件响应器,提供 import asyncio from datetime import datetime -from typing import Set, Type, TYPE_CHECKING, Optional +from typing import Set, Type, Optional, TYPE_CHECKING from nonebot.log import logger from nonebot.rule import TrieRule @@ -210,14 +210,12 @@ async def handle_event(bot: "Bot", event: "Event") -> Optional[Exception]: await asyncio.gather(*coros) except IgnoredException as e: logger.opt(colors=True).info( - f"Event {event.get_event_name()} is ignored" - ) + f"Event {event.get_event_name()} is ignored") return e except Exception as e: logger.opt(colors=True, exception=e).error( "Error when running EventPreProcessors. " - "Event ignored!" - ) + "Event ignored!") return e # Trie Match