mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
More accurate description of the exception, thanks @uwinx
This commit is contained in:
parent
137a481c72
commit
88c7aaaff1
1 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ class Update(TelegramObject):
|
|||
if self.chat_member:
|
||||
return "chat_member"
|
||||
|
||||
raise UpdateTypeLookupError("Unknown update type")
|
||||
raise UpdateTypeLookupError("Update does not contain any known event type.")
|
||||
|
||||
@property
|
||||
def event(self) -> TelegramObject:
|
||||
|
|
@ -102,4 +102,4 @@ class Update(TelegramObject):
|
|||
|
||||
|
||||
class UpdateTypeLookupError(LookupError):
|
||||
pass
|
||||
"""Update does not contain any known event type."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue