From b5b480a7a74c44cf037bc4a9818ee029dc00562d Mon Sep 17 00:00:00 2001 From: "Amit (OpenERP)" Date: Thu, 31 May 2012 13:34:06 +0530 Subject: [PATCH] [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 --- addons/web/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/common/http.py b/addons/web/common/http.py index 9294808fda4..0af64a18e5a 100644 --- a/addons/web/common/http.py +++ b/addons/web/common/http.py @@ -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):