now cleanly catches traceback that occurs when running newer simplejson with

older python interpreter.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
pull/2367/head
Brian Coca 12 years ago
parent 4eaca08664
commit 95a977cfc9

@ -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…
Cancel
Save