false not being returned on connection error

This commit is contained in:
Martin Konecny 2013-01-25 11:30:36 -05:00
parent 56c61d4ab7
commit 7b3850fac6

View file

@ -168,9 +168,9 @@ class AirtimeApiClient(object):
def get_schedule(self): def get_schedule(self):
# TODO : properly refactor this routine # 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()) try: return (True, self.services.export_url())
except: (False, "") except: return (False, None)
def notify_liquidsoap_started(self): def notify_liquidsoap_started(self):
return self.services.notify_liquidsoap_started() return self.services.notify_liquidsoap_started()