Skip to content

Commit

Permalink
Merge pull request #170 from MIERUNE/fix/handle-no-geometry-layers
Browse files Browse the repository at this point in the history
exclude no geometry layer in dialog
  • Loading branch information
Kanahiro authored Mar 12, 2024
2 parents d43b7fb + 4cc8340 commit f5f364d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/main_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ def _process_node_recursive(self, node, parent_node):
):
# Unsupported QgsMapLayerType
continue
if not child.layer().isSpatial():
# exclude no geometry layers such as CSV files
continue

else:
raise Exception("Unknown child type")
Expand Down

0 comments on commit f5f364d

Please sign in to comment.