mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use positional only format.
This commit is contained in:
parent
ea611e9fc9
commit
92253ba77a
7 changed files with 38 additions and 20 deletions
|
|
@ -8,7 +8,7 @@ class ValidationError(Exception):
|
|||
class TelegramAPIError(Exception):
|
||||
def __init__(self, message, method, status, body):
|
||||
super(TelegramAPIError, self).__init__(
|
||||
f"A request to the Telegram API was unsuccessful.\n{message}")
|
||||
"A request to the Telegram API was unsuccessful.\n" + message)
|
||||
self.method = method
|
||||
self.status = status
|
||||
self.body = body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue