feat: add repr for aiogram exception

#988
This commit is contained in:
Oleg A 2022-08-24 10:54:12 +03:00
parent e7cee430b2
commit 027b3754cc
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -23,6 +23,9 @@ class DetailedAiogramError(AiogramError):
message += f"\n(background on this error at: {self.url})"
return message
def __repr__(self) -> str:
return f"{type(self).__name__}('{self}')"
class TelegramAPIError(DetailedAiogramError):
def __init__(