mysql_db: use new exception handling, fixes build (#4373)

This commit is contained in:
René Moser 2016-08-10 12:35:01 +02:00 committed by Matt Clay
parent 9549883e78
commit 03022875c4

View file

@ -366,7 +366,8 @@ def main():
module.fail_json(msg="%s" % stderr)
else:
module.exit_json(changed=True, db=db, msg=stdout)
except Exception, e:
except Exception:
e = get_exception()
module.fail_json(msg="error creating database: " + str(e))
elif state == "absent":