mirror of
https://github.com/pulb/mailnag.git
synced 2026-02-25 20:40:43 +01:00
Fix return value in case of a glib exception
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user