Commit 96a54c7a authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

openstreetmap: fix fetch_upstream()

parent 1814deec
......@@ -42,7 +42,7 @@ def fetch_upstream(force=False):
headers={"User-Agent": "Mozilla/5.0"})
try:
with urllib.request.urlopen(req) as f:
with open_upstream_file(name, archive, "wb", autocompress=False) as output:
with open_upstream_file(name, archive, "wb") as output:
shutil.copyfileobj(f, output)
except urllib.error.HTTPError:
print("error fetching:", f"{upstream_prefix}/{list_upstream.url}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment