aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-download
diff options
context:
space:
mode:
Diffstat (limited to 'webmap-download')
-rwxr-xr-xwebmap-download4
1 files changed, 3 insertions, 1 deletions
diff --git a/webmap-download b/webmap-download
index 05aa2c4..087e7fc 100755
--- a/webmap-download
+++ b/webmap-download
@@ -268,7 +268,9 @@ def main() -> NoReturn:
logging.warning('Layer "%s" has no source, ignoring', layername)
continue
for idx, source in enumerate(sources):
- source = source.get('source', None)
+ if 'source' not in source:
+ continue
+ source = source['source']
path = None if source is None else source.get('path', None)
if path is None:
logging.error('Source #%d of layer "%s" has no path, ignoring',