From fbd4a2c73eb00f59611c90559e62194c17f82ecf Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 15 Sep 2016 12:19:51 +0200 Subject: [PATCH] [FIX] dispatch: creating a registry can raise an operational error If you try to create a registry of a database, an exception can be raised if the database does not exist. This may happen if you just drop a database. --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/http.py b/odoo/http.py index 1a78a9250bb..e444d5c49c0 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -1450,8 +1450,8 @@ class Root(object): with request: db = request.session.db if db: - odoo.registry(db).check_signaling() try: + odoo.registry(db).check_signaling() with odoo.tools.mute_logger('odoo.sql_db'): ir_http = request.registry['ir.http'] except (AttributeError, psycopg2.OperationalError, psycopg2.ProgrammingError):