Commit e241bb58 by Michael DeHaan

Merge pull request #2367 from bcoca/catch_mismatched_json

now cleanly catches traceback when conflicting versions of simplejson and python are installed
parents b19e199b 95a977cf
......@@ -75,6 +75,9 @@ except ImportError:
except ImportError:
sys.stderr.write('Error: ansible requires a json module, none found!')
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
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment