The get_submodules utility has a try/exception case for using importlib.import_module but the exception case is a pass. In the event that a submodule fails to load, there will be no feedback to the user of this. If they then wish to then run the failed submodule it will not be in the submodules list, and lewis will output the standard No device with the name error.
I've added a log to the get_submodules utility method so that users will see if any submodules they are trying to load fail.
One might have a number submodules that fail to load, even if they don't run them, so it is useful feedback for debugging.
The
get_submodules
utility has a try/exception case for usingimportlib.import_module
but the exception case is apass
. In the event that a submodule fails to load, there will be no feedback to the user of this. If they then wish to then run the failed submodule it will not be in the submodules list, and lewis will output the standardNo device with the name
error.I've added a log to the
get_submodules
utility method so that users will see if any submodules they are trying to load fail.One might have a number submodules that fail to load, even if they don't run them, so it is useful feedback for debugging.