Traceback (most recent call last):


 "test_parser.py", line 132, in <module>

print(test_parser())


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/.venv/lib/python3.7/site-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/.venv/lib/python3.7/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/.venv/lib/python3.7/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/.venv/lib/python3.7/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "test_parser.py", line 65, in test_parser

*args, target_datetime=target_datetime, logger=logging.getLogger(__name__)


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/parsers/GB_NIR.py", line 214, in fetch_production

production_data = get_data(production_url, target_datetime)


 "/Users/oliviercorradi/github/tmrowco/electricitymap/src/electricitymap/contrib/parsers/GB_NIR.py", line 45, in get_data

viewstategenerator = soup.find("input", attrs={'id': '__VIEWSTATEGENERATOR'})['value']
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "pandalearning.py", line 181, in <module>

total, each = show_score(cookies)


 "pandalearning.py", line 49, in show_score

total, each = score.get_score(cookies)


 "/home/mccree/Desktop/Learn/pdlearn/score.py", line 12, in get_score

total = int(json.loads(total, encoding="utf8")["data"]["score"])
TypeError: 'NoneType' object is not subscriptable
