Skip to content

Commit

Permalink
[FIX] convert_field_to_html: fix format call on string
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillemCForgeFlow committed Oct 10, 2024
1 parent c5713fc commit 42cb728
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2473,8 +2473,10 @@ def convert_field_to_html(
if translate:
if version_info[0] < 16:
do_raise("Translatable fields are only managed in version 16.0 or higher")
cr.execute("SELECT id, {field_name} FROM {table};").format(
field_name=field_name, table=table
cr.execute(
"SELECT id, {field_name} FROM {table};".format(
field_name=field_name, table=table
)
) # pylint: disable=E8103
for row in cr.fetchall():
record_id, translations = row
Expand Down

0 comments on commit 42cb728

Please sign in to comment.