mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
Log exception
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user