Skip to content

Commit 7d86611

Browse files
author
afabiani
committed
- Fix a regression preventing the library to fetch the style name
1 parent 585d051 commit 7d86611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geoserver/layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _get_default_style(self, recursive=False):
153153
return self._resolve_style(element, recursive) if element is not None else None
154154

155155
def _resolve_style(self, element, recursive=False):
156-
if element and element.find('name') and element.find('name').text:
156+
if element and element.find('name') is not None and len(element.find('name').text):
157157
if ":" in element.find('name').text:
158158
ws_name, style_name = element.find('name').text.split(':')
159159
else:

0 commit comments

Comments
 (0)