From c97857a1389d67985c85f526bbc524fe3bef7b3a Mon Sep 17 00:00:00 2001
From: Rudi Grinberg <rudi.grinberg@sourcefabric.org>
Date: Fri, 27 Jul 2012 15:57:34 -0400
Subject: [PATCH] cc-4105-2: removed incorrect tagging with is_recorded

---
 python_apps/api_clients/api_client.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py
index 1c71abfe7..e6d516060 100644
--- a/python_apps/api_clients/api_client.py
+++ b/python_apps/api_clients/api_client.py
@@ -408,10 +408,8 @@ class AirtimeApiClient():
                 else:
                     # We alias the value of is_record to true or false no
                     # matter what it is based on if it's absent in the action
-                    if 'is_record' in action:
-                        self.logger.debug("Sending a 'recorded' action")
-                        action['is_record'] = 1
-                    else: action['is_record'] = 0
+                    if 'is_record' not in action:
+                        action['is_record'] = 0
                     valid_actions.append(action)
             # Note that we must prefix every key with: mdX where x is a number
             # Is there a way to format the next line a little better? The
@@ -427,6 +425,7 @@ class AirtimeApiClient():
             response = self.get_response_from_server(req)
             response = json.loads(response)
             return response
+        except ValueError: raise
         except Exception, e:
             logger.error('Exception: %s', e)
             logger.error("traceback: %s", traceback.format_exc())