mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-11 08:46:00 +01:00
Fixed UP032 (f-string): Use f-string instead of format call
This commit is contained in:
1 parent
04ed752948
commit
562f76e61f
13 files changed
+73
-73
No files matched your search
+1
-1
@@ -164,7 +164,7 @@ def migration_12(env):
|
||||
try:
|
||||
table = table[0]
|
||||
c = conn.cursor()
|
||||
dropcmd = "DROP TABLE {}".format(table)
|
||||
dropcmd = f"DROP TABLE {table}"
|
||||
c.execute(dropcmd)
|
||||
except:
|
||||
print("Failed to drop table", table)
|
||||
|
||||
Reference in new issue
Block a user