diff options
author | mormj <mormjb@gmail.com> | 2020-11-09 07:21:30 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-12-17 08:32:17 -0500 |
commit | 08cd88d474a86bd742a321745b225293dcea635c (patch) | |
tree | 831e9e58f6011ee045a85c10e2338023c2ad3471 | |
parent | 176e86980b3eeb9795c7a217fba9eb205c7a5adf (diff) |
modtool: Change handled exception to ModuleNotFoundError
-rw-r--r-- | gr-utils/modtool/templates/gr-newmod/python/__init__.py | 2 |
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 |