Skip to content

Commit

Permalink
Avoid 0 cast to empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben1700 authored Sep 9, 2024
1 parent 332d070 commit 189c424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oopgrade/oopgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def module_is_installed(cursor, module_name):


def load_translation(cursor, lang, name, type, res_id, src, value):
if res_id not in (False, None):
if res_id is not False and res_id is not None:
insert_sql = """
INSERT INTO ir_translation(lang, name, type, res_id, src, value)
VALUES (%(lang)s, %(name)s, %(type)s, %(res_id)s, %(src)s, %(value)s)
Expand Down

0 comments on commit 189c424

Please sign in to comment.