[FIX] web: calls to openerp methods do not raises xmlrpc Fault anymore

bzr revid: chs@openerp.com-20130611163527-k6yzb604c36n2wha
This commit is contained in:
Christophe Simonis 2013-06-11 18:35:27 +02:00
parent 6263673720
commit 22a8e5266e
1 changed files with 1 additions and 1 deletions

View File

@ -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]