CC-4957 : Replay Gain undefined error, json response not being sent back properly.

This commit is contained in:
Naomi 2013-02-15 16:32:05 -05:00
parent d63865625d
commit fe611e7c6a
3 changed files with 9 additions and 8 deletions

View file

@ -115,7 +115,7 @@ get_bootstrap_info = 'get-bootstrap-info/format/json/api_key/%%api_key%%'
get_files_without_replay_gain = 'get-files-without-replay-gain/api_key/%%api_key%%/dir_id/%%dir_id%%'
update_replay_gain_value = 'update-replay-gain-value/api_key/%%api_key%%'
update_replay_gain_value = 'update-replay-gain-value/format/json/api_key/%%api_key%%'
notify_webstream_data = 'notify-webstream-data/api_key/%%api_key%%/media_id/%%media_id%%/format/json'

View file

@ -58,7 +58,9 @@ class ReplayGainUpdater(Thread):
try:
self.api_client.update_replay_gain_values(processed_data)
except Exception as e: self.unexpected_exception(e)
except Exception as e:
self.logger.error(e)
self.logger.debug(traceback.format_exc())
if len(files) == 0: break
self.logger.info("Processed: %d songs" % total)