From 6c7a930ee8ed8e225d68d765b9399d12bd89c5a7 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 8 Dec 2020 20:44:59 +1100 Subject: [PATCH] Fix variable --- spacy/cli/_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/_util.py b/spacy/cli/_util.py index 16a31363d..4012737cf 100644 --- a/spacy/cli/_util.py +++ b/spacy/cli/_util.py @@ -272,7 +272,7 @@ def show_validation_error( msg.fail(title) print(err.text.strip()) if hint_fill and "value_error.missing" in err.error_types: - path = ( + config_path = ( file_path if file_path is not None and str(file_path) != "-" else "config.cfg"