summaryrefslogtreecommitdiffstats
path: root/lib/modules/mysql_user2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modules/mysql_user2')
-rw-r--r--lib/modules/mysql_user24
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":