Skip to content

Commit

Permalink
fix error when retrieving GeoZones
Browse files Browse the repository at this point in the history
  • Loading branch information
mdamien committed Nov 8, 2020
1 parent d6eb687 commit 9981b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions udata/core/spatial/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 9981b81

Please sign in to comment.