From 7407298ca4fabb14a592a891f816aea0f07dd85c Mon Sep 17 00:00:00 2001 From: buddhi nipun mihara Date: Thu, 9 Jun 2016 13:03:48 +0530 Subject: [PATCH] Update PushSystemUsage.java --- .../main/java/org/wso2/agent/datasense/PushSystemUsage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/samples/connectedlap/component/laptopagent/src/main/java/org/wso2/agent/datasense/PushSystemUsage.java b/modules/samples/connectedlap/component/laptopagent/src/main/java/org/wso2/agent/datasense/PushSystemUsage.java index 1409bed3..1f135b81 100644 --- a/modules/samples/connectedlap/component/laptopagent/src/main/java/org/wso2/agent/datasense/PushSystemUsage.java +++ b/modules/samples/connectedlap/component/laptopagent/src/main/java/org/wso2/agent/datasense/PushSystemUsage.java @@ -59,11 +59,11 @@ public class PushSystemUsage { System.out.println(output); JSONObject outputjson= new JSONObject(output); if (response.getStatus() != 200 || outputjson ==null || !outputjson.getBoolean("success")) { - throw new RuntimeException("Failed : HTTP error code : " + response.getStatus()); + // throw new RuntimeException("Failed : HTTP error code : " + response.getStatus()); } } catch (Exception e) { - throw e; + // throw e; } } }