[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: 47d6fa4ff6e78a33691c22b08504ce03e6796c9a
This commit is contained in:
@@ -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_%')])
|
||||
|
||||
Reference in New Issue
Block a user