[FIX] osv_execption raised from report service gives a error
lp bug: https://launchpad.net/bugs/941124 fixed bzr revid: amp@tinyerp.com-20120531080406-k0ue29zympib1qu9
This commit is contained in:
parent
1242ff10da
commit
b5b480a7a7
|
@ -593,7 +593,7 @@ class LocalConnector(openerplib.Connector):
|
|||
except Exception,e:
|
||||
# TODO change the except to raise LibException instead of their emulated xmlrpc fault
|
||||
if isinstance(e, openerp.osv.osv.except_osv):
|
||||
fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
|
||||
fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + str(e.value), '')
|
||||
elif isinstance(e, openerp.exceptions.Warning):
|
||||
fault = xmlrpclib.Fault('warning -- Warning\n\n' + str(e), '')
|
||||
elif isinstance(e, openerp.exceptions.AccessError):
|
||||
|
|
Loading…
Reference in New Issue