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,
|
self,
|
||||||
obj: TelegramObject,
|
obj: TelegramObject,
|
||||||
) -> Union[bool, Dict[str, Any]]:
|
) -> Union[bool, Dict[str, Any]]:
|
||||||
pattern = cast(Pattern[str], self.pattern)
|
result = self.pattern.match(str(cast(ErrorEvent, obj).exception))
|
||||||
result = pattern.match(str(cast(ErrorEvent, obj).exception))
|
|
||||||
if not result:
|
if not result:
|
||||||
return False
|
return False
|
||||||
return {"match_exception": result}
|
return {"match_exception": result}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue