Use positional only format.

This commit is contained in:
Alex Root Junior 2017-07-25 04:45:33 +03:00
parent ea611e9fc9
commit 92253ba77a
7 changed files with 38 additions and 20 deletions

View file

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