From f4d547b73c31e7578dcc676b9276dab3dce851ad Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 18 Jan 2021 11:43:45 +1100 Subject: [PATCH] Fix error code --- spacy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index 67dccba3a..77aa712d1 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -122,7 +122,7 @@ class registry(thinc.registry): # specific error messages and implement a fallback to spacy-legacy. if not hasattr(cls, registry_name): names = ", ".join(cls.get_registry_names()) or "none" - raise RegistryError(Errors.E894.format(name=registry_name, available=names)) + raise RegistryError(Errors.E892.format(name=registry_name, available=names)) reg = getattr(cls, registry_name) try: func = reg.get(func_name)