mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed mypy
This commit is contained in:
parent
a88ee7a445
commit
4dfd86fd7d
1 changed files with 1 additions and 2 deletions
|
|
@ -45,8 +45,7 @@ class ExceptionMessageFilter(Filter):
|
|||
self,
|
||||
obj: TelegramObject,
|
||||
) -> Union[bool, Dict[str, Any]]:
|
||||
pattern = cast(Pattern[str], self.pattern)
|
||||
result = pattern.match(str(cast(ErrorEvent, obj).exception))
|
||||
result = self.pattern.match(str(cast(ErrorEvent, obj).exception))
|
||||
if not result:
|
||||
return False
|
||||
return {"match_exception": result}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue