mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
🦢 Log the response text, in case the response indicated an error
This commit is contained in:
@@ -150,7 +150,8 @@ def cf_api(endpoint, method, config, headers={}, data=False):
|
|||||||
if response.ok:
|
if response.ok:
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
print("📈 Rate limit exceeded")
|
print("📈 Error sending '" + method + "' request to '" + response.url + "':")
|
||||||
|
print(response.text)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def updateIPs(ips):
|
def updateIPs(ips):
|
||||||
|
|||||||
Reference in New Issue
Block a user