Merge pull request #49 from immortaly007/feature/error-response-logging
🦢 Log the response text, in case the response indicated an error
This commit is contained in:
commit
1f6daa5968
@ -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