Merge branch '2.3.x' into 2.3.x-saas

This commit is contained in:
Martin Konecny 2013-04-03 17:58:51 -04:00
commit 6c0b0f7732
1 changed files with 5 additions and 4 deletions

View File

@ -13,6 +13,7 @@ import urllib2
import logging
import json
import base64
import traceback
from configobj import ConfigObj
AIRTIME_VERSION = "2.3.1"
@ -86,7 +87,6 @@ class ApiRequest(object):
req = urllib2.Request(final_url, _post_data)
response = urllib2.urlopen(req).read()
except Exception, e:
import traceback
self.logger.error('Exception: %s', e)
self.logger.error("traceback: %s", traceback.format_exc())
raise
@ -364,8 +364,9 @@ class AirtimeApiClient(object):
def notify_liquidsoap_status(self, msg, stream_id, time):
logger = self.logger
try:
encoded_msg = urllib.quote(msg, '')
self.services.update_liquidsoap_status.req(msg=encoded_msg, stream_id=stream_id,
post_data = {"msg": msg}
self.services.update_liquidsoap_status.req(post_data,
stream_id=stream_id,
boot_time=time).retry(5)
except Exception, e:
#TODO