Skip to content

Commit b2b210e

Browse files
committed
Handle other errors: NoModuleFoundError
1 parent 06d107c commit b2b210e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mmd_tools_append/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def import_mmd_tools():
9090

9191
try:
9292
_MMD_TOOLS_CACHE = importlib.import_module("bl_ext.blender_org.mmd_tools")
93-
except ImportError as exception:
93+
except Exception as exception:
9494
try:
9595
_MMD_TOOLS_CACHE = importlib.import_module("bl_ext.vscode_development.mmd_tools")
96-
except ImportError:
96+
except:
9797
raise RuntimeError(_("MMD Tools is not installed correctly. Please install MMD Tools using the correct steps, as MMD Tools Append depends on MMD Tools.")) from exception
9898

9999
for hook in MMD_TOOLS_IMPORT_HOOKS:

0 commit comments

Comments
 (0)