From ff4fe524ee2adf3d088c03591d0cbf9f8fe9e35e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 23 Oct 2015 01:56:13 +0200 Subject: [PATCH] * Fix exception for python 2 --- spacy/en/download.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spacy/en/download.py b/spacy/en/download.py index fa03daffb..748e0542d 100644 --- a/spacy/en/download.py +++ b/spacy/en/download.py @@ -7,6 +7,13 @@ import plac from . import uget + +try: + FileExistsError +except NameError: + FileExistsError = Exception + + # TODO: Read this from the same source as the setup VERSION = '0.9.6'