From 88c7aaaff1073b1ded24c10093dc225930f51fb8 Mon Sep 17 00:00:00 2001 From: darksidecat <58224121+darksidecat@users.noreply.github.com> Date: Tue, 24 Aug 2021 14:07:00 +0300 Subject: [PATCH] More accurate description of the exception, thanks @uwinx --- aiogram/types/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/types/update.py b/aiogram/types/update.py index fc1ac03c..7b54195c 100644 --- a/aiogram/types/update.py +++ b/aiogram/types/update.py @@ -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."""