From 7b3850fac6c6322b8b9b40efa63199ac76b6f257 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 25 Jan 2013 11:30:36 -0500 Subject: [PATCH] false not being returned on connection error --- python_apps/api_clients/api_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index 048da729c..517870e45 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -168,9 +168,9 @@ class AirtimeApiClient(object): def get_schedule(self): # TODO : properly refactor this routine - # For now thre return type is a little fucked for compatibility reasons + # For now the return type is a little fucked for compatibility reasons try: return (True, self.services.export_url()) - except: (False, "") + except: return (False, None) def notify_liquidsoap_started(self): return self.services.notify_liquidsoap_started() @@ -356,7 +356,7 @@ class AirtimeApiClient(object): """ #http://localhost/api/get-files-without-replay-gain/dir_id/1 return self.services.get_files_without_replay_gain(dir_id=dir_id) - + def get_files_without_silan_value(self): """ Download a list of files that need to have their cue in/out value @@ -372,7 +372,7 @@ class AirtimeApiClient(object): """ self.logger.debug(self.services.update_replay_gain_value( _post_data={'data': json.dumps(pairs)})) - + def update_cue_values_by_silan(self, pairs): """ 'pairs' is a list of pairs in (x, y), where x is the file's database