Formatting

This commit is contained in:
Rudi Grinberg 2012-10-31 10:48:14 -04:00
parent 8e6f6b8894
commit 24088d63e0
1 changed files with 2 additions and 4 deletions

View File

@ -222,10 +222,8 @@ class AirtimeApiClient(object):
def get_liquidsoap_data(self, pkey, schedule): def get_liquidsoap_data(self, pkey, schedule):
playlist = schedule[pkey] playlist = schedule[pkey]
data = dict() data = dict()
try: try: data["schedule_id"] = playlist['id']
data["schedule_id"] = playlist['id'] except Exception: data["schedule_id"] = 0
except Exception:
data["schedule_id"] = 0
return data return data
def get_shows_to_record(self): def get_shows_to_record(self):