mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
cleanup
This commit is contained in:
parent
eaf5c265cb
commit
3e2e1fd323
|
@ -621,7 +621,6 @@ class Language:
|
|||
if not isinstance(config, dict):
|
||||
err = Errors.E962.format(style="config", name=name, cfg_type=type(config))
|
||||
raise ValueError(err)
|
||||
raise ValueError(err)
|
||||
if not srsly.is_json_serializable(config):
|
||||
raise ValueError(Errors.E961.format(config=config))
|
||||
if not self.has_factory(factory_name):
|
||||
|
|
Loading…
Reference in New Issue
Block a user