Skip to content

Commit

Permalink
adapt to Fiona changing error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarj committed Sep 11, 2024
1 parent 2a608d1 commit 8e1199c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapchete/io/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def fiona_read(path, mode="r", **kwargs):
):
if i in str(repr(exc)):
raise FileNotFoundError(f"path {str(path)} does not exist")
else: # pragma: no cover
else:
if not path.exists():
raise FileNotFoundError(f"path {str(path)} does not exist")
raise


Expand Down

0 comments on commit 8e1199c

Please sign in to comment.