From a0a9fc71f171928c22dcc4b22552d7e7a555cc94 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 12 Nov 2012 17:44:26 -0500 Subject: [PATCH] disable unlimited attempts for pushing stats data --- python_apps/api_clients/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index ca1f37cd8..22c28e7c4 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -764,7 +764,7 @@ class AirtimeApiClient(object): json_data = json.dumps(data) encoded_data = urllib.urlencode({'data': json_data}) request = urllib2.Request(url, encoded_data) - print self.get_response_from_server(request) + print self.get_response_from_server(request, attempts = 1) except Exception, e: self.logger.error("Exception: %s", e)