🦢 Log the response text, in case the response indicated an error
This commit is contained in:
parent
9a8d7d57e1
commit
c34401c43f
@ -150,7 +150,8 @@ def cf_api(endpoint, method, config, headers={}, data=False):
|
||||
if response.ok:
|
||||
return response.json()
|
||||
else:
|
||||
print("📈 Rate limit exceeded")
|
||||
print("📈 Error sending '" + method + "' request to '" + response.url + "':")
|
||||
print(response.text)
|
||||
return None
|
||||
|
||||
def updateIPs(ips):
|
||||
|
||||
Reference in New Issue
Block a user