bdit_data-sources
bdit_data-sources copied to clipboard
Handling invalid json responses in wys_api.py #501
What this pull request accomplishes:
- It handles the exception
json.decoder.JSONDecodeError
inwys_api.py
by logging the returned error message and passing the exception back to the calling function in order to skip the failing hour
Issue(s) this solves:
- #501
What, in particular, needs to reviewed:
- function
get_statistics_hourly
inwys/api/python/wys_api.py