From ae4de42894153eba76a34e15df7582b2071e66a5 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 28 Apr 2025 17:19:30 +0200 Subject: webmap-download: Don't fail for sourceless layers. Cf. for instance svk:transmissionsnatsprojekt. It has an import definition, but no source path/URL for webmap-download to operate on. --- webmap-download | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webmap-download') 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', -- cgit v1.2.3