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:
parent
9b332e4a3b
commit
e7694ffc57
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue