Reworked graceful shutdown (#1124)

* Reworked graceful shutdown

* Remove special errors from polling process

* Update dependencies

* Coverage

* Added changelog
This commit is contained in:
Alex Root Junior 2023-02-18 15:46:28 +02:00 committed by GitHub
parent a332e88bc3
commit d0b7135ca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 197 additions and 50 deletions

View file

@ -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