Skip to content

Commit

Permalink
catch ImportError instead of ModuleNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
raghur committed Sep 29, 2018
1 parent a3028e7 commit 23cf322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/denite/filter/matcher/fruzzymatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, vim):
import fruzzy_mod
self.nativeMethod = fruzzy_mod.scoreMatchesStr
self.useNative = True
except ModuleNotFoundError:
except ImportError:
self.debug("Native module requested but unable to load native module")
self.debug("falling back to python implementation")
self.debug("Check if you have nim_fuzzy.so or nim_fuzzy.pyd at %s" %
Expand Down

0 comments on commit 23cf322

Please sign in to comment.