WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
237 stars 110 forks source link

Catch error when ERCOT load_7day has no content #75

Closed aschn closed 8 years ago

aschn commented 8 years ago

args {"market": "DAHR", "forecast": true, "freq": "1hr"} at 2016-06-10 22:05:09.354772+00:00

File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/tasks.py", line 30, in get_load
    data = c.get_load(**kwargs)
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/ercot.py", line 112, in get_load
    df = self._request_report('load_7day')
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/ercot.py", line 30, in _request_report
    params=params).content
AttributeError: 'NoneType' object has no attribute 'content'