From e3c3f7d5f594774d5f37821eb8634dde5aaf8ab6 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Thu, 31 Aug 2023 10:21:08 +0200 Subject: [PATCH] psycopg2.errors.UndefinedTable return tuple to get babi_execution in err args #161872 #161894 --- babi_multiprocess.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babi_multiprocess.diff b/babi_multiprocess.diff index ae7d1a9..ee94588 100644 --- a/babi_multiprocess.diff +++ b/babi_multiprocess.diff @@ -29,7 +29,7 @@ index ee4e855895..ffe84c9e15 100644 + cursor.execute(*foreign_table.select(foreign_table.id, + where=foreign_red_sql)) + except psycopg2.errors.UndefinedTable as ex: -+ if ex.args and 'babi_execution' in ex.args: ++ if ex.args and (len(ex.args) > 0) and 'babi_execution' in ex.args[0]: + return [] records = Model.browse([x[0] for x in cursor.fetchall()]) else: