Merge "Raise an explicit BackendError on TLS failures"
This commit is contained in:
commit
902e47efa5
|
@ -215,6 +215,12 @@ class ConnectionManager(object):
|
|||
def _bind(self, conn, bind, passwd):
|
||||
# let's bind
|
||||
if self.use_tls:
|
||||
try:
|
||||
conn.start_tls_s()
|
||||
except Exception:
|
||||
raise BackendError('Could not activate TLS on established '
|
||||
'connection with %s' % self.uri,
|
||||
backend=conn)
|
||||
conn.start_tls_s()
|
||||
|
||||
if bind is not None:
|
||||
|
|
Loading…
Reference in New Issue