diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2019-02-05 23:51:13 +0100 |
commit | c19f6525465065496c485a5084a86707e4923580 (patch) | |
tree | eca4439d3eb4fba5427dbae28f7a51e143af91e9 /lib/modules/mysql_user2 | |
parent | fc337924c7e66258319c6b6d538660240cfeda5e (diff) |
Port custom modules to python3.
Diffstat (limited to 'lib/modules/mysql_user2')
-rw-r--r-- | lib/modules/mysql_user2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules/mysql_user2 b/lib/modules/mysql_user2 index f2d9d40..20742fe 100644 --- a/lib/modules/mysql_user2 +++ b/lib/modules/mysql_user2 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # (c) 2012, Mark Theunissen <mark.theunissen@gmail.com> # Sponsored by Four Kitchens http://fourkitchens.com. @@ -472,7 +472,7 @@ def main(): if not cursor: cursor = connect(module, login_user, login_password) - except Exception, e: + except Exception as e: module.fail_json(msg="unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials") if state == "present": |