From ae0bc1af7c601d4b8f711f12c0dfbb9bd0026381 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 18 Mar 2012 15:55:45 +0100 Subject: [PATCH] Ignore BadStatusLine exception. --- python/pakfire/client/transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/pakfire/client/transport.py b/python/pakfire/client/transport.py index 68eb3e604..1a424fdf9 100644 --- a/python/pakfire/client/transport.py +++ b/python/pakfire/client/transport.py @@ -19,6 +19,7 @@ # # ############################################################################### +import httplib import socket import ssl import time @@ -44,7 +45,7 @@ class XMLRPCMixin: try: ret = xmlrpclib.Transport.single_request(self, *args, **kwargs) - except (socket.error, ssl.SSLError, \ + except (socket.error, ssl.SSLError, httplib.BadStatusLine, \ xmlrpclib.Fault, xmlrpclib.ProtocolError, xmlrpclib.ResponseError), error_code: pass -- 2.39.5