]> granicus.if.org Git - python/commitdiff
Correctly dispatch Faults in loads (patch #1498627)
authorGeorg Brandl <georg@python.org>
Thu, 1 Jun 2006 12:30:46 +0000 (12:30 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 1 Jun 2006 12:30:46 +0000 (12:30 +0000)
Lib/SimpleXMLRPCServer.py

index c7646cf2cce28764cfc6557bf20bf0f40094cfc2..9d554d73775ec02e8d6dd11c58bf4fa261752107 100644 (file)
@@ -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: