mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2367 from bcoca/catch_mismatched_json
now cleanly catches traceback when conflicting versions of simplejson and python are installed
This commit is contained in:
commit
e241bb5801
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ except ImportError:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
sys.stderr.write('Error: ansible requires a json module, none found!')
|
sys.stderr.write('Error: ansible requires a json module, none found!')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except SyntaxError:
|
||||||
|
sys.stderr.write('SyntaxError: probably due to json and python being for different versions')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
HAVE_SELINUX=False
|
HAVE_SELINUX=False
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue