Skip to content

Commit

Permalink
Raise PermissionError when insufficient permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ColemanTom committed Mar 23, 2023
1 parent 1e361cc commit 25e68fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xarray/backends/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def guess_engine(
try:
if backend.guess_can_open(store_spec):
return engine
except PermissionError:
raise
except Exception:
warnings.warn(f"{engine!r} fails while guessing", RuntimeWarning)

Expand Down

0 comments on commit 25e68fe

Please sign in to comment.