Skip to content

Commit

Permalink
fix: nordpool session (#7115)
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKTORVAV99 authored Aug 27, 2024
1 parent 2687a37 commit ea7b987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parsers/NORDPOOL.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def fetch_price(
target_datetime: datetime | None = None,
logger: Logger = getLogger(__name__),
) -> list:
session = session or Session()
target_datetime = target_datetime or datetime.now()
params = {
"areas": f"{ZONE_MAPPING[zone_key]}",
Expand Down

0 comments on commit ea7b987

Please sign in to comment.