Skip to content

Commit

Permalink
Change import error for 3.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aCampello committed Nov 1, 2020
1 parent f1b29cd commit 9949918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrubadub/detectors/named_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try:
import spacy
from wasabi import msg
except ModuleNotFoundError as e:
except ImportError as e:
if getattr(e, 'name', None) == 'spacy':
warnings.warn("Could not find module 'spacy'. If you want to use extras,"
" make sure you install scrubadub with 'pip install scrubadub[spacy]'")
Expand Down

0 comments on commit 9949918

Please sign in to comment.