Skip to content

Commit

Permalink
refactor: remove ValueError if no geoms generated
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 14, 2024
1 parent 9ab8fdd commit d148f94
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fmtm_splitter/splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,6 @@ def split_by_sql(
features = featcol.get("features", [])
if features:
split_geoms += features
if not split_geoms:
msg = "Failed to generate split features."
log.error(msg)
raise ValueError(msg)
if outfile:
with open(outfile, "w") as jsonfile:
geojson.dump(split_geoms, jsonfile)
Expand Down

0 comments on commit d148f94

Please sign in to comment.