From 23cf322f5dcbc30ecdd3dfc5d9d0ab208e2d0748 Mon Sep 17 00:00:00 2001 From: Raghu Rajagopalan Date: Sat, 29 Sep 2018 08:22:33 +0530 Subject: [PATCH] catch ImportError instead of ModuleNotFoundError --- rplugin/python3/denite/filter/matcher/fruzzymatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/denite/filter/matcher/fruzzymatcher.py b/rplugin/python3/denite/filter/matcher/fruzzymatcher.py index ca81686..55a61c6 100644 --- a/rplugin/python3/denite/filter/matcher/fruzzymatcher.py +++ b/rplugin/python3/denite/filter/matcher/fruzzymatcher.py @@ -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" %