mirror of https://github.com/python/cpython
Correctly dispatch Faults in loads (patch #1498627)
This commit is contained in:
parent
6b50c63a23
commit
b9120e772b
|
@ -247,10 +247,10 @@ class SimpleXMLRPCDispatcher:
|
||||||
of changing method dispatch behavior.
|
of changing method dispatch behavior.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
params, method = xmlrpclib.loads(data)
|
|
||||||
|
|
||||||
# generate response
|
|
||||||
try:
|
try:
|
||||||
|
params, method = xmlrpclib.loads(data)
|
||||||
|
|
||||||
|
# generate response
|
||||||
if dispatch_method is not None:
|
if dispatch_method is not None:
|
||||||
response = dispatch_method(method, params)
|
response = dispatch_method(method, params)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue