From 22a8e5266e289af50df2aaa51b73c59e3aea97b4 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 11 Jun 2013 18:35:27 +0200 Subject: [PATCH] [FIX] web: calls to openerp methods do not raises xmlrpc Fault anymore bzr revid: chs@openerp.com-20130611163527-k6yzb604c36n2wha --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 0ab65b43379..5ea54abb549 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -768,7 +768,7 @@ class Database(openerpweb.Controller): # TODO change js to avoid calling this method if in monodb mode try: return db_list(req) - except xmlrpclib.Fault: + except openerp.exceptions.AccessDenied: monodb = db_monodb(req) if monodb: return [monodb]