We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be927ad commit ded7c92Copy full SHA for ded7c92
1 file changed
src/zarr/core/metadata/v3.py
@@ -34,7 +34,7 @@
34
)
35
from zarr.core.config import config
36
from zarr.core.metadata.common import parse_attributes
37
-from zarr.errors import MetadataValidationError, NodeTypeValidationError
+from zarr.errors import MetadataValidationError, NodeTypeValidationError, UnknownCodecError
38
from zarr.registry import get_codec_class
39
40
@@ -63,7 +63,11 @@ def parse_codecs(data: object) -> tuple[Codec, ...]:
63
out += (c,)
64
else:
65
name_parsed, _ = parse_named_configuration(c, require_configuration=False)
66
- out += (get_codec_class(name_parsed).from_dict(c),)
+
67
+ try:
68
+ out += (get_codec_class(name_parsed).from_dict(c),)
69
+ except KeyError as e:
70
+ raise UnknownCodecError(e.args[0]) from e
71
72
return out
73
0 commit comments