[FIX] no traceback when access denied
bzr revid: fp@tinyerp.com-20090828165027-uh9a77aqbsyecr2r
This commit is contained in:
parent
82191446b3
commit
8714d5863f
|
@ -235,9 +235,9 @@ class OpenERPDispatcher:
|
|||
Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
|
||||
|
||||
def dispatch(self, service_name, method, params):
|
||||
if service_name not in GROUPS['web-services']:
|
||||
raise Exception('AccessDenied')
|
||||
try:
|
||||
if service_name not in GROUPS['web-services']:
|
||||
raise Exception("%s -- %s\n\n%s"%('AccessDenied', 'Service not available', ''))
|
||||
self.log('service', service_name)
|
||||
self.log('method', method)
|
||||
self.log('params', params)
|
||||
|
|
Loading…
Reference in New Issue