From 7c140a3338fe0e29987cae234874c18a851f869a Mon Sep 17 00:00:00 2001 From: Telmo Santos Date: Wed, 2 Sep 2020 11:33:21 +0200 Subject: [PATCH] Log exception --- base_attachment_object_storage/models/ir_attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_attachment_object_storage/models/ir_attachment.py b/base_attachment_object_storage/models/ir_attachment.py index 0a3ecfa..6b72fec 100644 --- a/base_attachment_object_storage/models/ir_attachment.py +++ b/base_attachment_object_storage/models/ir_attachment.py @@ -266,8 +266,8 @@ class IrAttachment(models.Model): try: yield self.env(cr=cr) except Exception: - cr.rollback() - raise + _logger.exception("Error creating new odoo " + "environment") else: # disable pylint error because this is a valid commit, # we are in a new env