Skip to content

Commit 0b8fbc6

Browse files
authored
Fix FutureWarning when truth-testing XML element (#1027)
1 parent 3a3d757 commit 0b8fbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

owslib/wmts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ def __init__(self, elem, parent=None, index=0, parse_remote_metadata=False):
859859
dimension['default'] = default_value.text
860860

861861
current = dim.find(_DIMENSION_CURRENT_TAG)
862-
if current and current.text == 'true':
862+
if current is not None and current.text == 'true':
863863
dimension['current'] = True
864864
else:
865865
dimension['current'] = False

0 commit comments

Comments
 (0)