From 89bcad94ae517bf0969fadf25f653b2e200b44c1 Mon Sep 17 00:00:00 2001 From: botbikamordehai2-sketch Date: Tue, 23 Jun 2026 12:04:43 +0000 Subject: [PATCH] fix: correct attribute name in register function (closes #659) --- src/fabio/fabioformats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fabio/fabioformats.py b/src/fabio/fabioformats.py index 2d22e836..4a936404 100644 --- a/src/fabio/fabioformats.py +++ b/src/fabio/fabioformats.py @@ -116,7 +116,7 @@ def register(codec_class): raise AssertionError( "Expected subclass of FabioImage class but found %s" % type(codec_class) ) - _registry[codec_class.codec_name()] = codec_class + _registry[codec_class.codec_name] = codec_class # clean u[p the cache _extension_cache = None