Skip to content

Commit

Permalink
Survive wms with no layers
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Nov 30, 2023
1 parent ca50b1d commit 04fe32d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feature_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 04fe32d

Please sign in to comment.