Catch an IndexError occurring in Files Tab when scrolling through long list of torrents

This commit is contained in:
Calum Lind 2011-05-27 19:06:55 +01:00
parent c2b5d29c6a
commit 09a56ae03c
1 changed files with 4 additions and 1 deletions

View File

@ -482,7 +482,10 @@ class FilesTab(Tab):
if self._editing_index == row[5]: if self._editing_index == row[5]:
continue continue
try:
progress_string = "%.2f%%" % (status["file_progress"][index] * 100) progress_string = "%.2f%%" % (status["file_progress"][index] * 100)
except IndexError:
continue
if row[2] != progress_string: if row[2] != progress_string:
row[2] = progress_string row[2] = progress_string
progress_value = status["file_progress"][index] * 100 progress_value = status["file_progress"][index] * 100