geopython/OWSLib — pull request #46 by cleder (2012-12-10 12:27:12+00:00)
Title: fix if the style has no attribue isDefault 

Module owslib.wmts, line 100, in __init__
Module owslib.wmts, line 139, in _buildMetadata
Module owslib.wmts, line 133, in gather_layers
Module owslib.wmts, line 356, in __init__
Module lxml.etree, line 2197, in lxml.etree._Attrib.__getitem__ (src/lxml/lxml.etree.c:49131)
KeyError: isDefault

to prevent this the attrib.get is used which gracefully returns None
Geoserver 2.1 does not always set this attribute