From 9981b81c28762aaf1065dbd4d86de4c7d6c3ef2c Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 8 Nov 2020 10:35:10 +0100 Subject: [PATCH] fix error when retrieving GeoZones issue: https://github.com/opendatateam/docker-udata/issues/197 --- udata/core/spatial/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/udata/core/spatial/commands.py b/udata/core/spatial/commands.py index 16a983b9b8..74372f36ab 100644 --- a/udata/core/spatial/commands.py +++ b/udata/core/spatial/commands.py @@ -141,6 +141,7 @@ def load(filename=DEFAULT_GEOZONES_FILE, drop=False): prefix = 'geozones-{0}'.format(ts) if filename.startswith('http'): log.info('Downloading GeoZones bundle: %s', filename) + tmp.backend.ensure_path(GEOZONE_FILENAME) filename, _ = urlretrieve(filename, tmp.path(GEOZONE_FILENAME)) log.info('Extracting GeoZones bundle')