mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Reworked graceful shutdown (#1124)
* Reworked graceful shutdown * Remove special errors from polling process * Update dependencies * Coverage * Added changelog
This commit is contained in:
parent
a332e88bc3
commit
d0b7135ca6
7 changed files with 197 additions and 50 deletions
|
|
@ -42,6 +42,10 @@ class TelegramAPIError(DetailedAiogramError):
|
|||
super().__init__(message=message)
|
||||
self.method = method
|
||||
|
||||
def __str__(self) -> str:
|
||||
original_message = super().__str__()
|
||||
return f"Telegram server says {original_message}"
|
||||
|
||||
|
||||
class TelegramNetworkError(TelegramAPIError):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue