diff --git a/spacy/cli/convert.py b/spacy/cli/convert.py index ed6186e56..90e61cf4f 100644 --- a/spacy/cli/convert.py +++ b/spacy/cli/convert.py @@ -112,7 +112,7 @@ def convert( if not msg: msg = Printer(no_print=silent) - # Add warnings for renamed language code in v4 + # Throw error for renamed language codes in v4 if lang in RENAMED_LANGUAGE_CODES: msg.fail( title="Renamed language code", diff --git a/spacy/cli/init_config.py b/spacy/cli/init_config.py index b29bd0cb9..84b29682b 100644 --- a/spacy/cli/init_config.py +++ b/spacy/cli/init_config.py @@ -160,7 +160,7 @@ def init_config( msg = Printer(no_print=silent) with TEMPLATE_PATH.open("r") as f: template = Template(f.read()) - # Add warnings for renamed language code in v4 + # Throw error for renamed language codes in v4 if lang in RENAMED_LANGUAGE_CODES: msg.fail( title="Renamed language code", diff --git a/spacy/cli/init_pipeline.py b/spacy/cli/init_pipeline.py index 09d41f01c..ddea0e5cf 100644 --- a/spacy/cli/init_pipeline.py +++ b/spacy/cli/init_pipeline.py @@ -33,7 +33,7 @@ def init_vectors_cli( a model with vectors. """ util.logger.setLevel(logging.DEBUG if verbose else logging.INFO) - # Add warnings for renamed language code in v4 + # Throw error for renamed language codes in v4 if lang in RENAMED_LANGUAGE_CODES: msg.fail( title="Renamed language code",