Skip to content
Commit 00953f21 authored by Douglas Raillard's avatar Douglas Raillard
Browse files

exekall: Report import error in modules being imported

Import errors need to be ignored when parsing the command line the first time,
as some positional parameters could just belong to adaptor-specific options.
During that phase, importing must be done with a best-effort policy, so that
specifying a package name will result in importing as many submodules as
possible. This avoids not finding the adaptor just because an unrelated module
of the package failed to import with an ImportError.

Once the command line can be parsed unambiguously, modules can be imported
again. The modules that were imported successfully are reused, but the one that
failed to import will be imported again, and the exception will not be hidden at
this point.
parent 4dff2cbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment