Check for `ModuleNotFoundError` rather than the more general `ImportError` when sensible
In plotter
and continuum
we check for the presence of modules by wrapping their imports in a try-except, where we catch ImportError
.
ImportError
is raised whenever there was a problem importing the module. Depending on our usage, it may be more idiomatic to raise ModuleNotFound
error instead.
This is the case if other errors while importing the modules should bubble up further.
Edited by Joseph Weston