From f294335d94c57806ed0e8a8b1b0582c02f61e57b Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Fri, 8 Jun 2012 15:47:22 +0200 Subject: [PATCH] [FIX] if Exception 'value' attribute (e.value in this case) is not a string (some errors in the reporting system sometimes set a value that is not a string) the exception handling mecanism of the web client raises an exception an prevent the first raised exception from being displayed. The displayed exception is the one raised in the exception handling mecanism which is not helpful bzr revid: olt@tinyerp.com-20120608134722-raytxpk6o2rux79f --- 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 71a280f27eb..13574d1aec4 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 -- ' + str(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):