Skip to content

Commit f5804dc

Browse files
committed
Fix possible access to undefined bbox variable
1 parent 4396ba3 commit f5804dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config_generator/external_layer_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def get_external_wms_layer(resource, url, layerName, infoFormat, logger, timeout
191191
legendUrl = getWmsRequestUrl(contents, "sld:GetLegendGraphic", urlobj)
192192

193193
# BBOX
194+
bbox = None
194195
boundingBox = getFirstElementByTagName(targetLayer, "BoundingBox")
195196
if boundingBox is not None:
196197
bbox = {

0 commit comments

Comments
 (0)