Skip to content

Commit

Permalink
WMTS parsing bugfix backport
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 10, 2017
1 parent 577d9e0 commit 7786cab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ext-libs/owslib/wmts.py
Expand Up @@ -130,7 +130,8 @@ def _buildMetadata(self, parse_remote_metadata=False):

#serviceProvider metadata
serviceprov=self._capabilities.find('{http://www.opengis.net/ows/1.1}ServiceProvider')
self.provider=ServiceProvider(serviceprov)
if serviceprov is not None:
self.provider = ServiceProvider(serviceprov)

#serviceOperations metadata
self.operations=[]
Expand Down

1 comment on commit 7786cab

@tomkralidis
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI Travis failed but error is unrelated to this patch.

Please sign in to comment.