Commit 95a977cf by Brian Coca

now cleanly catches traceback that occurs when running newer simplejson with

older python interpreter.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent 4eaca086
...@@ -75,6 +75,9 @@ except ImportError: ...@@ -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:
......
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