[fix] problem with some reports

bzr revid: nicolas.vanhoren@openerp.com-20120605161827-a7qgfzagy1t4kqrt
This commit is contained in:
niv-openerp 2012-06-05 18:18:27 +02:00
commit 432c54e3e2
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,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):