We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2767d2 commit 4a47510Copy full SHA for 4a47510
src/ansiblelint/config.py
@@ -232,8 +232,9 @@ def guess_install_method() -> str:
232
logging.debug("Skipping %s as it is not installed.", package_name)
233
use_pip = False
234
# pylint: disable=broad-except
235
- except AttributeError as exc:
+ except (AttributeError, ModuleNotFoundError) as exc:
236
# On Fedora 36, we got a AttributeError exception from pip that we want to avoid
237
+ # On NixOS, we got a ModuleNotFoundError exception from pip that we want to avoid
238
logging.debug(exc)
239
240
0 commit comments