diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7b685f99a..a23ee36f5 100755 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -722,6 +722,8 @@ Bug Fixes * Fix URL of TYNDP scenario dataset * Automatically generated tasks now get unique :code:`task_id`\s. Fixes issue `#985`_ via PR `#986`_. +* Bypass SSL verification + `#1102 `_ * Fix faulty DSM time series `#1088 `_ * Set upper limit on commissioning date for units from MaStR diff --git a/src/egon/data/datasets/gas_neighbours/eGon2035.py b/src/egon/data/datasets/gas_neighbours/eGon2035.py index 7420a6faa..a64a94624 100755 --- a/src/egon/data/datasets/gas_neighbours/eGon2035.py +++ b/src/egon/data/datasets/gas_neighbours/eGon2035.py @@ -4,6 +4,7 @@ from pathlib import Path from urllib.request import urlretrieve import ast +import ssl import zipfile from shapely.geometry import LineString, MultiLineString @@ -1122,7 +1123,11 @@ def calculate_ch4_grid_capacities(): url = "https://www.entsog.eu/sites/default/files/2021-07/" + basename target_file = Path(".") / "datasets" / "gas_data" / basename + context_backup = ssl._create_default_https_context + ssl._create_default_https_context = ssl._create_unverified_context urlretrieve(url, target_file) + ssl._create_default_https_context = context_backup + map_pipelines = { "NORDSTREAM": "RU00", "NORDSTREAM 2": "RU00",