Skip to content
Snippets Groups Projects
Commit c88389ec authored by Paul-Edouard Sarlin's avatar Paul-Edouard Sarlin
Browse files

File formatting

parent 5f0d2d4a
Branches
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ def get_osm( ...@@ -27,7 +27,7 @@ def get_osm(
logger.info("Calling the OpenStreetMap API...") logger.info("Calling the OpenStreetMap API...")
result = urllib3.request("GET", OSM_URL, fields=query, timeout=10) result = urllib3.request("GET", OSM_URL, fields=query, timeout=10)
if result.status != 200: if result.status != 200:
error = result.info()['error'] error = result.info()["error"]
raise ValueError(f"{result.status} {responses[result.status]}: {error}") raise ValueError(f"{result.status} {responses[result.status]}: {error}")
if cache_path is not None: if cache_path is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment