Skip to content

Commit ba6ec53

Browse files
Merge pull request #387 from ForgeFlow/fix-convert_field_to_html
[FIX] convert_field_to_html: fix `format` call on string
2 parents c5713fc + 6677088 commit ba6ec53

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

openupgradelib/openupgrade.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,9 +2473,11 @@ def convert_field_to_html(
24732473
if translate:
24742474
if version_info[0] < 16:
24752475
do_raise("Translatable fields are only managed in version 16.0 or higher")
2476-
cr.execute("SELECT id, {field_name} FROM {table};").format(
2477-
field_name=field_name, table=table
2478-
) # pylint: disable=E8103
2476+
cr.execute( # pylint: disable=E8103
2477+
"SELECT id, {field_name} FROM {table};".format(
2478+
field_name=field_name, table=table
2479+
)
2480+
)
24792481
for row in cr.fetchall():
24802482
record_id, translations = row
24812483
for lang in translations:

0 commit comments

Comments
 (0)