From 7ef91050cf3ccea2eeca13aefdbac29716806487 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Sun, 11 Apr 2021 18:23:35 +0200 Subject: [PATCH] Fix return value in case of a glib exception --- Mailnag/daemon/conntest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailnag/daemon/conntest.py b/Mailnag/daemon/conntest.py index 344a99d..7916bce 100644 --- a/Mailnag/daemon/conntest.py +++ b/Mailnag/daemon/conntest.py @@ -47,7 +47,7 @@ class ConnectivityTest: try: return (not self._monitor.can_reach(Gio.NetworkAddress.new(TEST_HOST, 8080))) except: - return False + return True else: return (os.system('ping -c1 -W2 %s > /dev/null 2>&1' % TEST_HOST) != 0)