make Koji more robust to transient SSL errors
This commit is contained in:
parent
25ef943ec8
commit
34737ac662
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ import urlparse
|
|||
import xmlrpclib
|
||||
from xmlrpclib import loads, Fault
|
||||
import ssl.XMLRPCServerProxy
|
||||
import OpenSSL.SSL
|
||||
|
||||
def _(args):
|
||||
"""Stub function for translation"""
|
||||
|
|
@ -1301,7 +1302,7 @@ class ClientSession(object):
|
|||
return proxy.__getattr__(name)(*args)
|
||||
except Fault, fault:
|
||||
raise convertFault(fault)
|
||||
except (socket.error,socket.sslerror,xmlrpclib.ProtocolError),e:
|
||||
except (socket.error,socket.sslerror,xmlrpclib.ProtocolError,OpenSSL.SSL.Error), e:
|
||||
if not self.logged_in:
|
||||
raise
|
||||
elif debug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue