now cleanly catches traceback that occurs when running newer simplejson with

older python interpreter.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
Brian Coca 2013-03-11 15:10:49 -04:00
parent 4eaca08664
commit 95a977cfc9

View file

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