Skip to content

Commit 2a99164

Browse files
authored
Merge pull request #36 from QGEP/fix_error_on_null_point
Do not raise exception on null geometries
2 parents a989ff2 + 63c3e32 commit 2a99164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/qgepnetwork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _addVertices(self):
123123

124124
try:
125125
vertex = feat.geometry().asPoint()
126-
except AttributeError:
126+
except ValueError:
127127
# TODO Add to problem log
128128
pass
129129
self.graph.add_node(fid, point=vertex, objType=obj_type, objId=obj_id)

0 commit comments

Comments
 (0)