Skip to content

Commit 6ba67e1

Browse files
authored
Fix how storage_options is passed to get_mapper. (#678)
1 parent 7ca5aa6 commit 6ba67e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intake_esm/cat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def save(
178178
directory = os.getcwd()
179179

180180
# Configure the fsspec mapper and associated filenames
181-
mapper = fsspec.get_mapper(f'{directory}', storage_options=storage_options)
181+
storage_options = storage_options if storage_options is not None else {}
182+
mapper = fsspec.get_mapper(f'{directory}', **storage_options)
182183
fs = mapper.fs
183184
csv_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.csv')
184185
json_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.json')

0 commit comments

Comments
 (0)