1 |
commit: c9552deb2d4b50b26e493e4a04b6adc5c65ed4df |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 15:01:15 2022 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 15:01:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=c9552deb |
7 |
|
8 |
selectors.py: Change general exception output to print_warn |
9 |
|
10 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
11 |
|
12 |
mirrorselect/selectors.py | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py |
16 |
index 1b1312c..8b5e28b 100644 |
17 |
--- a/mirrorselect/selectors.py |
18 |
+++ b/mirrorselect/selectors.py |
19 |
@@ -461,10 +461,10 @@ class Deep(object): |
20 |
self.output.write(('deeptime(): connection to host %s ' |
21 |
'timed out for ip %s\n') % (url_parts.hostname, ip), 2) |
22 |
except Exception as e: # Add general exception to catch any other errors |
23 |
- self.output.write(('deeptime(): connection to host %s ' |
24 |
+ self.output.print_warn(('deeptime(): connection to host %s ' |
25 |
'errored for ip %s\n %s\n' |
26 |
' Please file a bug for this error at bugs.gentoo.org') |
27 |
- % (url_parts.hostname, ip, e), 2) |
28 |
+ % (url_parts.hostname, ip, e), 0) |
29 |
return f, test_url, early_out |