CC-5038: Silan error: list index out of range

-fixed
This commit is contained in:
Martin Konecny 2013-04-05 15:32:44 -04:00
parent afb55c7b51
commit d1f655d79d
3 changed files with 12 additions and 9 deletions

View file

@ -58,7 +58,8 @@ class ReplayGainUpdater(Thread):
total += 1
try:
self.api_client.update_replay_gain_values(processed_data)
if len(processed_data):
self.api_client.update_replay_gain_values(processed_data)
except Exception as e:
self.logger.error(e)
self.logger.debug(traceback.format_exc())