1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #90 from tbielawa/except

Fix exception catching for py2.4
This commit is contained in:
Michael DeHaan 2012-03-29 11:20:22 -07:00
commit 011a0ecbdf

View file

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