diff --git a/addons/account/models/ir_attachment.py b/addons/account/models/ir_attachment.py index 9bb3befbcc7..1b428b2d262 100644 --- a/addons/account/models/ir_attachment.py +++ b/addons/account/models/ir_attachment.py @@ -49,7 +49,7 @@ class IrAttachment(models.Model): pdf_reader = OdooPdfFileReader(buffer, strict=False) except Exception as e: # Malformed pdf - _logger.exception("Error when reading the pdf: %s", e) + _logger.warning("Error when reading the pdf: %s", e, exc_info=True) return [] # Process embedded files.