Skip to content

Commit a47b2e2

Browse files
committed
use getattr in case property not defined
1 parent 50cff3e commit a47b2e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎xarray/backends/zarr.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,8 @@ def _get_open_params(
17691769
missing_exc = zarr.errors.GroupNotFoundError
17701770

17711771
if _zarr_v3():
1772-
if not store.supports_consolidated_metadata:
1772+
# zarr 3.0.8 and earlier did not support this property - it was effectively assumed true
1773+
if not getattr(store, "supports_consolidated_metadata", True):
17731774
consolidated = consolidate_on_close = False
17741775

17751776
if consolidated in [None, True]:

0 commit comments

Comments
 (0)