mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Merge pull request #454 from adamhadani/download-noerrorifexists
Exit code 0 for when downloading a model that already was downloaded
This commit is contained in:
commit
d9fcf9b79e
|
@ -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