summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormormj <mormjb@gmail.com>2020-11-09 07:21:30 -0500
committermormj <34754695+mormj@users.noreply.github.com>2020-12-17 08:32:17 -0500
commit08cd88d474a86bd742a321745b225293dcea635c (patch)
tree831e9e58f6011ee045a85c10e2338023c2ad3471
parent176e86980b3eeb9795c7a217fba9eb205c7a5adf (diff)
modtool: Change handled exception to ModuleNotFoundError
-rw-r--r--gr-utils/modtool/templates/gr-newmod/python/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/modtool/templates/gr-newmod/python/__init__.py b/gr-utils/modtool/templates/gr-newmod/python/__init__.py
index 0ccbe5a325..096baa30a0 100644
--- a/gr-utils/modtool/templates/gr-newmod/python/__init__.py
+++ b/gr-utils/modtool/templates/gr-newmod/python/__init__.py
@@ -16,7 +16,7 @@ import os
try:
# this might fail if the module is python-only
from .howto_python import *
-except ImportError:
+except ModuleNotFoundError:
pass
# import any pure python here