1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

fix error logs

This commit is contained in:
Steffo 2017-03-26 13:26:49 +02:00
parent 9b332e4a3b
commit e7694ffc57

View file

@ -145,7 +145,7 @@ class Bot:
if "description" in data:
error = data["description"]
if response.status != 200:
raise TelegramAPIError(f"Request returned {response.status} {response.reason}\n{}")
raise TelegramAPIError(f"Request returned {response.status} {response.reason}")
# Check for errors in the response
if not data["ok"]:
error = data["description"]