ImportError instead of newer ModuleNotFoundError

This commit is contained in:
Steven Robertson 2020-02-05 15:40:25 -08:00
parent 2d3d9cb659
commit e3eebb98d0
1 changed files with 1 additions and 1 deletions

View File

@ -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'