diff --git a/owslib/wmts.py b/owslib/wmts.py index b7655283..a7ce896b 100644 --- a/owslib/wmts.py +++ b/owslib/wmts.py @@ -859,7 +859,7 @@ def __init__(self, elem, parent=None, index=0, parse_remote_metadata=False): dimension['default'] = default_value.text current = dim.find(_DIMENSION_CURRENT_TAG) - if current and current.text == 'true': + if current is not None and current.text == 'true': dimension['current'] = True else: dimension['current'] = False