Skip to content

Commit

Permalink
- Fix a regression preventing the library to fetch the style name
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jun 8, 2022
1 parent 585d051 commit 7d86611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geoserver/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _get_default_style(self, recursive=False):
return self._resolve_style(element, recursive) if element is not None else None

def _resolve_style(self, element, recursive=False):
if element and element.find('name') and element.find('name').text:
if element and element.find('name') is not None and len(element.find('name').text):
if ":" in element.find('name').text:
ws_name, style_name = element.find('name').text.split(':')
else:
Expand Down

0 comments on commit 7d86611

Please sign in to comment.