From c9552deb2d4b50b26e493e4a04b6adc5c65ed4df Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Tue, 31 May 2022 08:01:15 -0700 Subject: selectors.py: Change general exception output to print_warn Signed-off-by: Brian Dolbec --- mirrorselect/selectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py index 1b1312c..8b5e28b 100644 --- a/mirrorselect/selectors.py +++ b/mirrorselect/selectors.py @@ -461,10 +461,10 @@ class Deep(object): self.output.write(('deeptime(): connection to host %s ' 'timed out for ip %s\n') % (url_parts.hostname, ip), 2) except Exception as e: # Add general exception to catch any other errors - self.output.write(('deeptime(): connection to host %s ' + self.output.print_warn(('deeptime(): connection to host %s ' 'errored for ip %s\n %s\n' ' Please file a bug for this error at bugs.gentoo.org') - % (url_parts.hostname, ip, e), 2) + % (url_parts.hostname, ip, e), 0) return f, test_url, early_out -- cgit v1.2.3-65-gdbad