equal
deleted
inserted
replaced
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. |