Skip to content

Commit e309415

Browse files
committed
add filenotfounderror to tupe of handled errors
1 parent 4c3081c commit e309415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/zarr/api/asynchronous.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ async def open(
308308
return await open_array(store=store_path, zarr_format=zarr_format, **kwargs)
309309
except (KeyError, NodeTypeValidationError):
310310
# KeyError for a missing key
311+
# FileNotFoundError for missing key as well.
312+
# TODO: consolidate these exceptions
311313
# NodeTypeValidationError for failing to parse node metadata as an array when it's
312314
# actually a group
313315
return await open_group(store=store_path, zarr_format=zarr_format, **kwargs)

0 commit comments

Comments
 (0)