Merge "Expose exception objects via the as keyword"

This commit is contained in:
Jenkins 2015-09-01 08:21:37 +00:00 committed by Gerrit Code Review
commit 6668900e71

View File

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