From 4d8314bd5d911876d88bb9d560063e3e5e2a213f Mon Sep 17 00:00:00 2001
From: "@fhdk" <fh@uex.dk>
Date: Thu, 9 Nov 2017 09:34:47 +0100
Subject: [PATCH] added exception printout in inet_conn_check()

---
 pacman_mirrors/functions/httpfn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pacman_mirrors/functions/httpfn.py b/pacman_mirrors/functions/httpfn.py
index 9269c99b..dfb89c6a 100644
--- a/pacman_mirrors/functions/httpfn.py
+++ b/pacman_mirrors/functions/httpfn.py
@@ -169,8 +169,8 @@ def inet_conn_check(maxwait=2):
         try:
             data = urlopen(host, timeout=maxwait)
             break
-        except:
-            pass
+        except Exception as e:
+            print(".: {} {} '{}'".format(txt.WRN_CLR, host, e))
     return bool(data)
 
 
-- 
GitLab