mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add representation for aiogram exception (#989)
* feat: add repr for aiogram exception #988 * docs: add changelog #988 * tests: add representation coverage #988 * fix: correct test result type #988
This commit is contained in:
parent
0b5f4d62c7
commit
a08c2e750c
3 changed files with 19 additions and 0 deletions
|
|
@ -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__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue