[FIX] web: calls to openerp methods do not raises xmlrpc Fault anymore
bzr revid: chs@openerp.com-20130611163527-k6yzb604c36n2wha
This commit is contained in:
parent
6263673720
commit
22a8e5266e
|
@ -768,7 +768,7 @@ class Database(openerpweb.Controller):
|
||||||
# TODO change js to avoid calling this method if in monodb mode
|
# TODO change js to avoid calling this method if in monodb mode
|
||||||
try:
|
try:
|
||||||
return db_list(req)
|
return db_list(req)
|
||||||
except xmlrpclib.Fault:
|
except openerp.exceptions.AccessDenied:
|
||||||
monodb = db_monodb(req)
|
monodb = db_monodb(req)
|
||||||
if monodb:
|
if monodb:
|
||||||
return [monodb]
|
return [monodb]
|
||||||
|
|
Loading…
Reference in New Issue