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 d5c58c2 commit 82385fdCopy full SHA for 82385fd
numcodecs/registry.py
@@ -42,11 +42,10 @@ def get_codec(config):
42
config = dict(config)
43
codec_id = config.pop('id', None)
44
cls = codec_registry.get(codec_id)
45
- if cls is None:
46
- if codec_id in entries:
47
- logger.debug("Auto loading codec '%s' from entrypoint", codec_id)
48
- cls = entries[codec_id].load()
49
- register_codec(cls, codec_id=codec_id)
+ if cls is None and codec_id in entries:
+ logger.debug("Auto loading codec '%s' from entrypoint", codec_id)
+ cls = entries[codec_id].load()
+ register_codec(cls, codec_id=codec_id)
50
if cls:
51
return cls.from_config(config)
52
raise ValueError(f'codec not available: {codec_id!r}')
0 commit comments