mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
exit code 0 for when downloading a model that already was downloaded
This commit is contained in:
parent
b1d06ff9e9
commit
f1c0762443
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user