Log exception

This commit is contained in:
Telmo Santos
2020-09-02 11:33:21 +02:00
parent 6337607e2c
commit 7c140a3338
@@ -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