Skip to content

Commit e0ba649

Browse files
author
Ray Bell
committed
fsspec in to_zarr
1 parent 77d24de commit e0ba649

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

xarray/backends/api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,10 +1335,8 @@ def to_zarr(
13351335
mapper = store
13361336
chunk_mapper = chunk_store
13371337
else:
1338-
try:
1339-
from fsspec import get_mapper
1340-
except ModuleNotFoundError:
1341-
raise ModuleNotFoundError("fsspec is required for storage_options arg")
1338+
from fsspec import get_mapper
1339+
13421340
mapper = get_mapper(store, **storage_options)
13431341
chunk_mapper = get_mapper(chunk_store, **storage_options)
13441342

0 commit comments

Comments
 (0)