aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-05-31 08:01:15 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-05-31 08:01:15 -0700
commitc9552deb2d4b50b26e493e4a04b6adc5c65ed4df (patch)
tree59cbb70debdf11618d58d50b76d03805a0eeea49
parentversion.py: Bump base version to 2.3.0 before release (diff)
downloadmirrorselect-c9552deb2d4b50b26e493e4a04b6adc5c65ed4df.tar.gz
mirrorselect-c9552deb2d4b50b26e493e4a04b6adc5c65ed4df.tar.bz2
mirrorselect-c9552deb2d4b50b26e493e4a04b6adc5c65ed4df.zip
selectors.py: Change general exception output to print_warn
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--mirrorselect/selectors.py4
1 files 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