diff options
author | 2022-05-31 08:01:15 -0700 | |
---|---|---|
committer | 2022-05-31 08:01:15 -0700 | |
commit | c9552deb2d4b50b26e493e4a04b6adc5c65ed4df (patch) | |
tree | 59cbb70debdf11618d58d50b76d03805a0eeea49 | |
parent | version.py: Bump base version to 2.3.0 before release (diff) | |
download | mirrorselect-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.py | 4 |
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 |