mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] sql_request_abstract: black, isort, prettier
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"version": "14.0.1.1.0",
|
||||
"author": "GRAP,Akretion,Odoo Community Association (OCA)",
|
||||
"maintainers": ["legalsylvain"],
|
||||
"website": "https://github.com/OCA/server-tools",
|
||||
"website": "https://github.com/OCA/reporting-engine",
|
||||
"license": "AGPL-3",
|
||||
"category": "Tools",
|
||||
"summary": "Abstract Model to manage SQL Requests",
|
||||
|
||||
@@ -269,7 +269,7 @@ class SQLRequestMixin(models.AbstractModel):
|
||||
res = self._hook_executed_request()
|
||||
except ProgrammingError as e:
|
||||
logger.exception("Failed query: %s", query)
|
||||
raise UserError(_("The SQL query is not valid:\n\n %s") % e)
|
||||
raise UserError(_("The SQL query is not valid:\n\n %s") % e) from e
|
||||
finally:
|
||||
self._rollback_savepoint(rollback_name)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user