[FIX] http: avoid crash in web/database/selector when selecting invalid database (#17830)

This commit is contained in:
Ankit Joshi
2017-06-27 16:52:20 +02:00
committed by Raphael Collet
parent 8108904247
commit 16ebec2324
+1 -1
View File
@@ -366,7 +366,7 @@ class WebRequest(object):
use :attr:`.env`
"""
return odoo.registry(self.db) if self.db else None
return odoo.registry(self.db)
@property
def db(self):