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

Port htpasswd to python3 compatible syntax (#3672)

This commit is contained in:
Michael Scherer 2016-05-17 19:17:24 +02:00 committed by Matt Clay
parent 73a33c02a9
commit 31126034b0

View file

@ -251,7 +251,8 @@ def main():
check_file_attrs(module, changed, msg)
module.exit_json(msg=msg, changed=changed)
except Exception, e:
except Exception:
e = get_exception()
module.fail_json(msg=str(e))