ModuleNotFoundError is a subclass of ImportError but only exists in Python 3.6 or newer. Instead of doing hacks to be able to catch that on older Pythons, just always only catch ImportError, which will also catch ModuleNotFoundError on Python 3.6 or later |
||
---|---|---|
.. | ||
ansible |