Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 0d91689

Browse files
committed
fix: Handle None style attribute in layer visibility check
1 parent c19906c commit 0d91689

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: export_layers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def get_layers(self, src):
8080

8181
# Check if layer is visible
8282
style = layer.get('style', '')
83-
is_visible = 'display:none' not in style
83+
is_visible = True
84+
if style is not None:
85+
is_visible = 'display:none' not in style
8486

8587
if self.options.only_visible and not is_visible:
8688
continue

0 commit comments

Comments
 (0)