diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index fb36326..fc9c984 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -647,7 +647,7 @@ def privileges_grant(cursor, user, host, db_table, priv, tls_requires, maria_rol try: cursor.execute(query, params) except (mysql_driver.ProgrammingError, mysql_driver.OperationalError, mysql_driver.InternalError) as e: - raise InvalidPrivsError("Error granting privileges, invalid priv string: %s" % priv_string) from e + raise InvalidPrivsError("Error granting privileges, invalid priv string: %s" % priv_string) def convert_priv_dict_to_str(priv):