sarlinpe commited on
Commit
c88389e
·
1 Parent(s): 5f0d2d4

File formatting

Browse files
Files changed (1) hide show
  1. 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()['error']
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: