mercurial/sslutil.py
changeset 50601 a2f922825721
parent 50398 c54e9bb5737e
child 50602 b73bae3520b8
equal deleted inserted replaced
50600:1d937e495cd0 50601:a2f922825721
   417                 )
   417                 )
   418         except ssl.SSLError:
   418         except ssl.SSLError:
   419             pass
   419             pass
   420 
   420 
   421         # Try to print more helpful error messages for known failures.
   421         # Try to print more helpful error messages for known failures.
   422         if util.safehasattr(e, b'reason'):
   422         if util.safehasattr(e, 'reason'):
   423             # This error occurs when the client and server don't share a
   423             # This error occurs when the client and server don't share a
   424             # common/supported SSL/TLS protocol. We've disabled SSLv2 and SSLv3
   424             # common/supported SSL/TLS protocol. We've disabled SSLv2 and SSLv3
   425             # outright. Hopefully the reason for this error is that we require
   425             # outright. Hopefully the reason for this error is that we require
   426             # TLS 1.1+ and the server only supports TLS 1.0. Whatever the
   426             # TLS 1.1+ and the server only supports TLS 1.0. Whatever the
   427             # reason, try to emit an actionable warning.
   427             # reason, try to emit an actionable warning.