Skip to content

Commit 73911b7

Browse files
committed
propagate mode kwarg into open_group
1 parent 311efaf commit 73911b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/zarr/api/asynchronous.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ async def open_group(
702702
return await AsyncGroup.open(
703703
store_path, zarr_format=zarr_format, use_consolidated=use_consolidated
704704
)
705-
except (KeyError, FileNotFoundError):
705+
except (KeyError, FileNotFoundError) as e:
706+
if mode in ("r", "r+"):
707+
raise FileNotFoundError(f"Group '{path}' not found in store '{store_path}'") from e
706708
return await AsyncGroup.from_store(
707709
store_path,
708710
zarr_format=zarr_format or _default_zarr_version(),

0 commit comments

Comments
 (0)