add more debug print
This commit is contained in:
4
main.py
4
main.py
@@ -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)
|
||||
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