Commit 2ee09afa authored by Sebastien Robin's avatar Sebastien Robin

taskdistribution: handle another possible error with master

parent 44168884
...@@ -39,6 +39,7 @@ Example use: ...@@ -39,6 +39,7 @@ Example use:
# Run the test_line.name test # Run the test_line.name test
test_line.stop() test_line.stop()
""" """
import httplib
import logging import logging
import select import select
import socket import socket
...@@ -50,7 +51,7 @@ __all__ = ['TaskDistributionTool', 'TestResultProxy', 'TestResultLineProxy', 'pa ...@@ -50,7 +51,7 @@ __all__ = ['TaskDistributionTool', 'TestResultProxy', 'TestResultLineProxy', 'pa
# Depending on used xmlrpc backend, different exceptions can be thrown. # Depending on used xmlrpc backend, different exceptions can be thrown.
SAFE_RPC_EXCEPTION_LIST = [socket.error, xmlrpclib.ProtocolError, SAFE_RPC_EXCEPTION_LIST = [socket.error, xmlrpclib.ProtocolError,
xmlrpclib.Fault] xmlrpclib.Fault, httplib.BadStatusLine]
parser, _ = xmlrpclib.getparser() parser, _ = xmlrpclib.getparser()
if xmlrpclib.ExpatParser and isinstance(parser, xmlrpclib.ExpatParser): if xmlrpclib.ExpatParser and isinstance(parser, xmlrpclib.ExpatParser):
SAFE_RPC_EXCEPTION_LIST.append(xmlrpclib.expat.ExpatError) SAFE_RPC_EXCEPTION_LIST.append(xmlrpclib.expat.ExpatError)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment