kipe / nordpool

Python library for fetching Nord Pool spot prices.
MIT License
96 stars 37 forks source link

Update elspot.py #32

Open flopp999 opened 1 year ago

flopp999 commented 1 year ago

Sometimes I get below error " File "/usr/local/lib/python3.9/dist-packages/nordpool/elspot.py", line 132, in hourly return self.fetch(self.HOURLY, end_date, areas) File "/usr/local/lib/python3.9/dist-packages/nordpool/elspot.py", line 128, in fetch return self._parse_json(self._fetch_json(data_type, end_date), areas) File "/usr/local/lib/python3.9/dist-packages/nordpool/elspot.py", line 37, in _parse_json currency = data['currency'] KeyError: 'currency' " maybe this could be a solution or can help you to find a solution