Skip to content

Commit

Permalink
jsontogeojson: Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Nov 25, 2022
1 parent e01cab4 commit f1bba04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcoveofds/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _dereference_object(self, ref, list):

if "id" in ref:
for item in list:
if item.get("id") == ref["id"]:
if isinstance(item, dict) and item.get("id") == ref["id"]:
return item

return ref
Expand Down

0 comments on commit f1bba04

Please sign in to comment.