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: try:
yield self.env(cr=cr) yield self.env(cr=cr)
except Exception: except Exception:
cr.rollback() _logger.exception("Error creating new odoo "
raise "environment")
else: else:
# disable pylint error because this is a valid commit, # disable pylint error because this is a valid commit,
# we are in a new env # we are in a new env