mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-15 23:47:24 +02:00
Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first
This commit is contained in:
@@ -448,7 +448,8 @@ def get_mail_password(email, env):
|
||||
c.execute('SELECT password FROM users WHERE email=?', (email,))
|
||||
rows = c.fetchall()
|
||||
if len(rows) != 1:
|
||||
raise ValueError(f"That's not a user ({email}).")
|
||||
msg = f"That's not a user ({email})."
|
||||
raise ValueError(msg)
|
||||
return rows[0][0]
|
||||
|
||||
def remove_mail_user(email, env):
|
||||
|
||||
Reference in New Issue
Block a user