From 5551052840833ef9a5c2f1f679dd390e0a035a0d Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Sat, 16 Jan 2016 12:44:53 +0100 Subject: [PATCH] fix py2/3 issue --- spacy/en/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/en/download.py b/spacy/en/download.py index 7e017b9c0..ae1e62e44 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -36,14 +36,14 @@ def main(data_size='all', force=False): print("Model already installed. Please run 'python -m " "spacy.en.download --force' to reinstall.", file=sys.stderr) sys.exit(1) - except PackageNotFoundException, CompatiblePackageNotFoundException: + except (PackageNotFoundException, CompatiblePackageNotFoundException): pass package = sputnik.install(about.__name__, about.__version__, about.__default_model__) try: sputnik.package(about.__name__, about.__version__, about.__default_model__) - except PackageNotFoundException, CompatiblePackageNotFoundException: + except (PackageNotFoundException, CompatiblePackageNotFoundException): print("Model failed to install. Please run 'python -m " "spacy.en.download --force'.", file=sys.stderr) sys.exit(1)