From c19f6525465065496c485a5084a86707e4923580 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 5 Feb 2019 23:51:13 +0100 Subject: Port custom modules to python3. --- lib/modules/mysql_user2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/modules/mysql_user2') 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 # 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": -- cgit v1.2.3