Fix exception

This commit is contained in:
Andrew Klychkov 2022-03-15 12:13:41 +01:00
commit 8ccffe31ca

View file

@ -370,7 +370,7 @@ def user_delete(cursor, user, host, host_all, check_mode):
for hostname in hostnames:
try:
cursor.execute("DROP USER IF EXISTS %s@%s", (user, hostname))
except:
except Exception:
cursor.execute("DROP USER %s@%s", (user, hostname))
return True