now cleanly catches traceback that occurs when running newer simplejson with

older python interpreter.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
pull/4420/head
Brian Coca 2013-03-11 15:10:49 -04:00
parent 4eaca08664
commit 95a977cfc9
1 changed files with 3 additions and 0 deletions

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: