From e3eebb98d0357e5deb5781af440c9f7f1d1be86b Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Wed, 5 Feb 2020 15:40:25 -0800 Subject: [PATCH] ImportError instead of newer ModuleNotFoundError --- ansible_mitogen/transport_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/transport_config.py b/ansible_mitogen/transport_config.py index 5d4d6689..ff22c0fb 100644 --- a/ansible_mitogen/transport_config.py +++ b/ansible_mitogen/transport_config.py @@ -71,7 +71,7 @@ from ansible.utils.unsafe_proxy import AnsibleUnsafeText # this was added in Ansible >= 2.8.0; fallback to the default interpreter if necessary try: from ansible.executor.interpreter_discovery import discover_interpreter -except ModuleNotFoundError: +except ImportError: discover_interpreter = lambda a,b,c,d: '/usr/bin/python'