Skip to content

Commit 119a5eb

Browse files
committed
Ensure backwards compatibility
1 parent 0328656 commit 119a5eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zarr/core/group.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,9 @@ def _from_bytes_v2(
573573
v2_consolidated_metadata = json.loads(consolidated_metadata_bytes.to_bytes())
574574
v2_consolidated_metadata = v2_consolidated_metadata["metadata"]
575575
# We already read zattrs and zgroup. Should we ignore these?
576-
v2_consolidated_metadata.pop(".zattrs")
577-
v2_consolidated_metadata.pop(".zgroup")
576+
print(" DEBUG:", v2_consolidated_metadata)
577+
v2_consolidated_metadata.pop(".zattrs", None)
578+
v2_consolidated_metadata.pop(".zgroup", None)
578579

579580
consolidated_metadata: defaultdict[str, dict[str, Any]] = defaultdict(dict)
580581

0 commit comments

Comments
 (0)