Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Maintenance #7

Open
lawrencefoley opened this issue Aug 15, 2021 · 0 comments
Open

Handle Maintenance #7

lawrencefoley opened this issue Aug 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lawrencefoley
Copy link
Owner

lawrencefoley commented Aug 15, 2021

Evergy has scheduled maintenance on their website sometimes. During the maintenance you get redirected (HTTP 301) to https://www.evergy.com/planned-outage.

The code should be changed to handle this and log an error about the maintenance.

This also seems to happen sometimes late at night, possibly for system patches:

2021-10-13 23:04:26,271 - INFO - root -  - Logging in with username: [email protected]
Traceback (most recent call last):
  File "main.py", line 35, in <module>
    usage = client.get_usage(start=date.today(), end=date.today(), query_scale="mi")
...
  File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@lawrencefoley lawrencefoley added the enhancement New feature or request label Aug 15, 2021
@lawrencefoley lawrencefoley mentioned this issue Aug 19, 2021
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant