From f1c0762443753c2efaa4fdd8d16d446aabf9d96a Mon Sep 17 00:00:00 2001 From: Adam Ever Hadani Date: Wed, 13 Jul 2016 16:22:14 -0700 Subject: [PATCH] exit code 0 for when downloading a model that already was downloaded --- spacy/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/download.py b/spacy/download.py index f7fc798ae..4fbc6b11b 100644 --- a/spacy/download.py +++ b/spacy/download.py @@ -17,7 +17,7 @@ def download(lang, force=False): sputnik.package(about.__title__, about.__version__, about.__models__[lang]) print("Model already installed. Please run 'python -m " "spacy.%s.download --force' to reinstall." % lang, file=sys.stderr) - sys.exit(1) + sys.exit(0) except (PackageNotFoundException, CompatiblePackageNotFoundException): pass