Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with currency mismatch #2

Closed
mathiastj opened this issue Apr 15, 2021 · 1 comment
Closed

Fails with currency mismatch #2

mathiastj opened this issue Apr 15, 2021 · 1 comment

Comments

@mathiastj
Copy link
Owner

All action runs for today, e.g. https://github.com/mathiastj/electricity-price-render/runs/2355333085?check_suite_focus=true
fail with:

Traceback (most recent call last):
  File "/home/runner/work/electricity-price-render/electricity-price-render/main.py", line 23, in <module>
    hourlyEastDenmarkPrices = prices_spot.hourly(areas=['DK2'])
  File "/opt/hostedtoolcache/Python/3.9.4/x64/lib/python3.9/site-packages/nordpool/elspot.py", line 132, in hourly
    return self.fetch(self.HOURLY, end_date, areas)
  File "/opt/hostedtoolcache/Python/3.9.4/x64/lib/python3.9/site-packages/nordpool/elspot.py", line 128, in fetch
    return self._parse_json(self._fetch_json(data_type, end_date), areas)
  File "/opt/hostedtoolcache/Python/3.9.4/x64/lib/python3.9/site-packages/nordpool/elspot.py", line 41, in _parse_json
    raise CurrencyMismatch
nordpool.base.CurrencyMismatch

Seems to be explained here: kipe/nordpool#21

It should hopefully fix itself.

@mathiastj
Copy link
Owner Author

The api output has been fixed: kipe/nordpool#21 (comment)
Also seen by the runs completing again: https://github.com/mathiastj/electricity-price-render/actions/runs/753337387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant