commit: a6532e7c6b655ebba0dce53f92d9fca180b23be6 Author: Xiami <i <AT> f2light <DOT> com> AuthorDate: Thu Dec 14 10:30:29 2017 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Wed Feb 13 08:06:57 2019 +0000 URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=a6532e7c
selectors.py: handle ssl.CertificateError (bug 639156) Bug: https://bugs.gentoo.org/639156 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> mirrorselect/selectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)
