1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +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: if "description" in data:
error = data["description"] error = data["description"]
if response.status != 200: 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 # Check for errors in the response
if not data["ok"]: if not data["ok"]:
error = data["description"] error = data["description"]