mirror of https://github.com/explosion/spaCy.git
Fix error code
This commit is contained in:
parent
1090d3d675
commit
f4d547b73c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue