Merge "Expose exception objects via the as keyword"
This commit is contained in:
commit
6668900e71
@ -87,7 +87,7 @@ def main():
|
|||||||
config.write(f)
|
config.write(f)
|
||||||
|
|
||||||
module.exit_json(changed=changed)
|
module.exit_json(changed=changed)
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
module.exit_json(failed=True, changed=changed, msg=repr(e))
|
module.exit_json(failed=True, changed=changed, msg=repr(e))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user