Skip to content

Commit d3beb0a

Browse files
committed
use Value error instead of key error in geojson functions
1 parent c5e9c75 commit d3beb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/mapswipe_workers/utils/geojson_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def cast_datatypes_for_geojson(filename: str):
6868
geojson_data["features"][i]["properties"][property] = float(
6969
geojson_data["features"][i]["properties"][property]
7070
)
71-
except KeyError:
71+
except ValueError:
7272
pass
7373

7474
with open(filename, "w") as f:

0 commit comments

Comments
 (0)