Skip to content

Commit

Permalink
Merge pull request #36 from QGEP/fix_error_on_null_point
Browse files Browse the repository at this point in the history
Do not raise exception on null geometries
  • Loading branch information
m-kuhn authored Apr 4, 2019
2 parents a989ff2 + 63c3e32 commit 2a99164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/qgepnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _addVertices(self):

try:
vertex = feat.geometry().asPoint()
except AttributeError:
except ValueError:
# TODO Add to problem log
pass
self.graph.add_node(fid, point=vertex, objType=obj_type, objId=obj_id)
Expand Down

0 comments on commit 2a99164

Please sign in to comment.