Spaces:
Runtime error
Runtime error
File formatting
Browse files- maploc/osm/download.py +1 -1
maploc/osm/download.py
CHANGED
|
@@ -27,7 +27,7 @@ def get_osm(
|
|
| 27 |
logger.info("Calling the OpenStreetMap API...")
|
| 28 |
result = urllib3.request("GET", OSM_URL, fields=query, timeout=10)
|
| 29 |
if result.status != 200:
|
| 30 |
-
error = result.info()[
|
| 31 |
raise ValueError(f"{result.status} {responses[result.status]}: {error}")
|
| 32 |
|
| 33 |
if cache_path is not None:
|
|
|
|
| 27 |
logger.info("Calling the OpenStreetMap API...")
|
| 28 |
result = urllib3.request("GET", OSM_URL, fields=query, timeout=10)
|
| 29 |
if result.status != 200:
|
| 30 |
+
error = result.info()["error"]
|
| 31 |
raise ValueError(f"{result.status} {responses[result.status]}: {error}")
|
| 32 |
|
| 33 |
if cache_path is not None:
|