]> git.ipfire.org Git - pakfire.git/commitdiff
Ignore BadStatusLine exception.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Mar 2012 14:55:45 +0000 (15:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Mar 2012 14:55:45 +0000 (15:55 +0100)
python/pakfire/client/transport.py

index 68eb3e604195742f34006d72af74db1f118ff34c..1a424fdf9c11cbf074f72298c96d6b38a82af817 100644 (file)
@@ -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