commit: c9552deb2d4b50b26e493e4a04b6adc5c65ed4df
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 15:01:15 2022 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue May 31 15:01:15 2022 +0000
URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=c9552deb
selectors.py: Change general exception output to print_warn
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
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