Skip to content
Snippets Groups Projects
Commit 83f46d01 authored by Denis Mudarisov's avatar Denis Mudarisov
Browse files

[FIX] website: _handle_exception takes only two arguments

Before the commit, if an exception occurs there was an error saying:
`TypeError: _handle_exception() takes 2 positional arguments but 3 were given`

Impacted versions:

 - 12.0
 - 13.0
 - 14.0

X-original-commit: 47d6fa4f
parent 25f78346
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ class Website(Home):
try:
request.website.get_template('website.website_info').name
except Exception as e:
return request.env['ir.http']._handle_exception(e, 404)
return request.env['ir.http']._handle_exception(e)
Module = request.env['ir.module.module'].sudo()
apps = Module.search([('state', '=', 'installed'), ('application', '=', True)])
l10n = Module.search([('state', '=', 'installed'), ('name', '=like', 'l10n_%')])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment