From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6941A158091 for ; Tue, 31 May 2022 18:39:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A656E0878; Tue, 31 May 2022 18:39:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EAEF7E0729 for ; Tue, 31 May 2022 18:39:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1ED0341AEB for ; Tue, 31 May 2022 18:39:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 304054D4 for ; Tue, 31 May 2022 18:39:00 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1654009275.c9552deb2d4b50b26e493e4a04b6adc5c65ed4df.dolsen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/selectors.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c9552deb2d4b50b26e493e4a04b6adc5c65ed4df X-VCS-Branch: master Date: Tue, 31 May 2022 18:39:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35cb1752-a979-4827-930b-f3f9a3e2416d X-Archives-Hash: e6e78759fbee1007d54846c825e65fc7 commit: c9552deb2d4b50b26e493e4a04b6adc5c65ed4df Author: Brian Dolbec gentoo org> AuthorDate: Tue May 31 15:01:15 2022 +0000 Commit: Brian Dolbec gentoo 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 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