From a6532e7c6b655ebba0dce53f92d9fca180b23be6 Mon Sep 17 00:00:00 2001 From: Xiami Date: Thu, 14 Dec 2017 18:30:29 +0800 Subject: selectors.py: handle ssl.CertificateError (bug 639156) Bug: https://bugs.gentoo.org/639156 Signed-off-by: Zac Medico --- 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) -- cgit v1.2.3-65-gdbad