From 55c8bcba68e0bf3386f62ba6933f7187321f5592 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 4 Mar 2022 14:22:30 +0000 Subject: [PATCH] [FIX] account_edi: Too many arguments for logging format string (E1205) Part-of: odoo/odoo#86332 --- addons/account_edi/models/account_edi_format.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/addons/account_edi/models/account_edi_format.py b/addons/account_edi/models/account_edi_format.py index bc60c24a4df..b947cc544c7 100644 --- a/addons/account_edi/models/account_edi_format.py +++ b/addons/account_edi/models/account_edi_format.py @@ -414,7 +414,11 @@ class AccountEdiFormat(models.Model): except RedirectWarning as rw: raise rw except Exception as e: - _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, str(e)) + _logger.exception( + "Error importing attachment \"%s\" as invoice with format \"%s\": %s", + file_data['filename'], + edi_format.name, + str(e)) if res: return res return self.env['account.move'] @@ -437,7 +441,11 @@ class AccountEdiFormat(models.Model): else: # file_data['type'] == 'binary' res = edi_format._update_invoice_from_binary(file_data['filename'], file_data['content'], file_data['extension'], invoice) except Exception as e: - _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, str(e)) + _logger.exception( + "Error importing attachment \"%s\" as invoice with format \"%s\": %s", + file_data['filename'], + edi_format.name, + str(e)) if res: return res return self.env['account.move']