mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix exception catching for py2.4
This commit is contained in:
parent
72cc99722d
commit
5261d14aef
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ if __name__ == '__main__':
|
||||||
(options, args) = cli.parse()
|
(options, args) = cli.parse()
|
||||||
try:
|
try:
|
||||||
(runner, results) = cli.run(options, args)
|
(runner, results) = cli.run(options, args)
|
||||||
except errors.AnsibleError as e:
|
except errors.AnsibleError, e:
|
||||||
# Generic handler for ansible specific errors
|
# Generic handler for ansible specific errors
|
||||||
print "ERROR: %s" % str(e)
|
print "ERROR: %s" % str(e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue