mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-10-21 21:31:52 +00:00
1 parent
7c140a3338
commit
b9e91458f5
1 file changed
+2
-2
@@ -266,8 +266,8 @@ class IrAttachment(models.Model):
|
||||
try:
|
||||
yield self.env(cr=cr)
|
||||
except Exception:
|
||||
_logger.exception("Error creating new odoo "
|
||||
"environment")
|
||||
cr.rollback()
|
||||
raise
|
||||
else:
|
||||
# disable pylint error because this is a valid commit,
|
||||
# we are in a new env
|
||||
|
||||