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:
Timothy Miller 2021-03-21 13:40:43 -04:00 committed by GitHub
commit 1f6daa5968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):