From 04fe32df1aa440e9a3ba03a381e22f6cf81b1575 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 30 Nov 2023 21:48:50 +0100 Subject: [PATCH] Survive wms with no layers --- feature_info_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feature_info_service.py b/feature_info_service.py index aba8d07..1ef25e7 100644 --- a/feature_info_service.py +++ b/feature_info_service.py @@ -582,7 +582,8 @@ def load_resources(self, config): # collect map layers layers = {} group_layers = {} - self.collect_layers(wms['root_layer'], layers, group_layers) + if wms['root_layer'] is not None: + self.collect_layers(wms['root_layer'], layers, group_layers) wms_services[wms['name']] = { 'layers': layers,