Remove unused error object (#11837)

This commit is contained in:
Paul O'Leary McCann 2022-11-23 18:51:31 +09:00 committed by GitHub
parent f0d8309a28
commit f1ddac187d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -784,14 +784,6 @@ class Language:
factory_name, source, name=name factory_name, source, name=name
) )
else: else:
if not self.has_factory(factory_name):
err = Errors.E002.format(
name=factory_name,
opts=", ".join(self.factory_names),
method="add_pipe",
lang=util.get_object_name(self),
lang_code=self.lang,
)
pipe_component = self.create_pipe( pipe_component = self.create_pipe(
factory_name, factory_name,
name=name, name=name,