add more debug print
This commit is contained in:
1 parent
117ac3a45a
commit
05f19fbdd2
1 file changed
+5
-1
@@ -27,7 +27,11 @@ def get_blackouts(bill_id) -> list:
|
||||
"to_date": to_date.strftime("%Y/%m/%d"),
|
||||
}
|
||||
response = requests.post(url, headers=headers, json=payload)
|
||||
return response.json().get("data", [])
|
||||
if response.ok:
|
||||
return response.json().get("data", [])
|
||||
else:
|
||||
print(f"❌ Failed to get blackouts: {response.text}")
|
||||
exit(1)
|
||||
|
||||
|
||||
def load_blackouts() -> dict:
|
||||
|
||||
Reference in new issue
Block a user