summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-02-15 07:50:56 +0900
committerkali <kali@leap.se>2013-02-15 09:01:26 +0900
commitf40ca118facbcc5be29176690127e7dd436bb7d9 (patch)
tree7ae350810a18e25388a6972c0e6c6960694421e1
parent5151bb97b175505a8ebf9d3e3ba31454f7ebb159 (diff)
do not be so hysteric when net fails
-rw-r--r--src/leap/base/checks.py3
-rw-r--r--src/leap/base/exceptions.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/base/checks.py b/src/leap/base/checks.py
index 0bf44f59..7a27f355 100644
--- a/src/leap/base/checks.py
+++ b/src/leap/base/checks.py
@@ -185,7 +185,8 @@ class LeapNetworkChecker(object):
logger.debug('packet loss %s%%' % packet_loss)
if packet_loss > constants.MAX_ICMP_PACKET_LOSS:
- raise exceptions.NoConnectionToGateway
+ logger.warning("Packet LOSS = %s" % (packet_loss,))
+ #raise exceptions.NoConnectionToGateway
def check_name_resolution(self, domain_name):
try:
diff --git a/src/leap/base/exceptions.py b/src/leap/base/exceptions.py
index 2e31b33b..3d8dde48 100644
--- a/src/leap/base/exceptions.py
+++ b/src/leap/base/exceptions.py
@@ -67,7 +67,7 @@ class NoDefaultInterfaceFoundError(LeapException):
"is not connected to the internet")
-class NoConnectionToGateway(CriticalError):
+class NoConnectionToGateway(LeapException):
message = "no connection to gateway"
usermessage = translate(
"Errors",
@@ -75,7 +75,7 @@ class NoConnectionToGateway(CriticalError):
"with your internet connection")
-class NoInternetConnection(CriticalError):
+class NoInternetConnection(LeapException):
message = "No Internet connection found"
usermessage = translate(
"Errors",