diff options
author | 2017-12-14 18:30:29 +0800 | |
---|---|---|
committer | 2019-02-13 00:06:57 -0800 | |
commit | a6532e7c6b655ebba0dce53f92d9fca180b23be6 (patch) | |
tree | a76a5d102cccc2688fc58b0ac1c9ca447b11842e | |
parent | selectors.py: handle ssl.CertificateError (bug 604968) (diff) | |
download | mirrorselect-a6532e7c6b655ebba0dce53f92d9fca180b23be6.tar.gz mirrorselect-a6532e7c6b655ebba0dce53f92d9fca180b23be6.tar.bz2 mirrorselect-a6532e7c6b655ebba0dce53f92d9fca180b23be6.zip |
selectors.py: handle ssl.CertificateError (bug 639156)
Bug: https://bugs.gentoo.org/639156
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | mirrorselect/selectors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py index 58a44a1..33f7663 100644 --- a/mirrorselect/selectors.py +++ b/mirrorselect/selectors.py @@ -388,7 +388,7 @@ class Deep(object): finally: signal.alarm(0) - except EnvironmentError as e: + except (EnvironmentError, ssl.CertificateError) as e: self.output.write(('\ndeeptime(): download from host %s ' 'failed for ip %s: %s\n') % (url_parts.hostname, ip, e), 2) return (None, True) |