From b9120e772be65492e02beced8b344e98cf5f85d2 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 1 Jun 2006 12:30:46 +0000 Subject: [PATCH] Correctly dispatch Faults in loads (patch #1498627) --- Lib/SimpleXMLRPCServer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index c7646cf2cce..9d554d73775 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py @@ -247,10 +247,10 @@ class SimpleXMLRPCDispatcher: of changing method dispatch behavior. """ - params, method = xmlrpclib.loads(data) - - # generate response try: + params, method = xmlrpclib.loads(data) + + # generate response if dispatch_method is not None: response = dispatch_method(method, params) else: