exit code 0 for when downloading a model that already was downloaded

This commit is contained in:
Adam Ever Hadani 2016-07-13 16:22:14 -07:00
parent b1d06ff9e9
commit f1c0762443

View File

@ -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