🦢 Log the response text, in case the response indicated an error

This commit is contained in:
Bas Dado 2021-03-20 14:35:08 +01:00
parent 9a8d7d57e1
commit c34401c43f

View File

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