mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 08:03:40 +00:00
Catch an IndexError occurring in Files Tab when scrolling through long list of torrents
This commit is contained in:
parent
c2b5d29c6a
commit
09a56ae03c
@ -482,7 +482,10 @@ class FilesTab(Tab):
|
||||
if self._editing_index == row[5]:
|
||||
continue
|
||||
|
||||
progress_string = "%.2f%%" % (status["file_progress"][index] * 100)
|
||||
try:
|
||||
progress_string = "%.2f%%" % (status["file_progress"][index] * 100)
|
||||
except IndexError:
|
||||
continue
|
||||
if row[2] != progress_string:
|
||||
row[2] = progress_string
|
||||
progress_value = status["file_progress"][index] * 100
|
||||
|
Loading…
x
Reference in New Issue
Block a user