WattTime / pyiso

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

NYISO bug in `fetch_csvs` #65

Closed aschn closed 8 years ago

aschn commented 8 years ago

Observed during 10:10-10:20am Pacific time on April 22, 2016:

File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 67, in get_load
    df = self.get_any('pal', self.parse_load_rtm)
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 148, in get_any
    for csv in self.fetch_csvs(date, label):
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 180, in fetch_csvs
    if response.status_code == 200:
AttributeError: 'NoneType' object has no attribute 'status_code'
aschn commented 8 years ago

came up again at 2016-05-12 06:51

File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 83, in get_trade
    df = self.get_any('ExternalLimitsFlows', self.parse_trade)
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 148, in get_any
    for csv in self.fetch_csvs(date, label):
  File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/nyiso.py", line 180, in fetch_csvs
    if response.status_code == 200:
AttributeError: 'NoneType' object has no attribute 'status_code'