From 18eeeb1125023c0c36f81fac1be8d3aca7f7e338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 21 Nov 2008 13:12:47 +0100 Subject: [PATCH] Return integer as faultCode in xmlrpc to be compliant with the XML-RPC Specification --- trytond/netsvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/netsvc.py b/trytond/netsvc.py index c4fd3e2074..d29a20f621 100644 --- a/trytond/netsvc.py +++ b/trytond/netsvc.py @@ -146,7 +146,7 @@ class GenericXMLRPCRequestHandler: import pdb traceb = sys.exc_info()[2] pdb.post_mortem(traceb) - raise xmlrpclib.Fault(str(sys.exc_value), tb_s) + raise xmlrpclib.Fault(1, str(sys.exc_value) + '\n' + tb_s) class SimpleXMLRPCRequestHandler(GenericXMLRPCRequestHandler,