mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Catch an IndexError occurring in Files Tab when scrolling through long list of torrents
This commit is contained in:
parent
dd78a75ca8
commit
e0443943b5
1 changed files with 4 additions and 1 deletions
|
@ -485,7 +485,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…
Add table
Reference in a new issue