diff --git a/bin/ansible b/bin/ansible index a53aca72489..978bddf33ce 100755 --- a/bin/ansible +++ b/bin/ansible @@ -175,7 +175,7 @@ if __name__ == '__main__': (options, args) = cli.parse() try: (runner, results) = cli.run(options, args) - except errors.AnsibleError as e: + except errors.AnsibleError, e: # Generic handler for ansible specific errors print "ERROR: %s" % str(e) sys.exit(1)