From e0443943b5979e4e6663eb08b126d581a1208e57 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 27 May 2011 19:06:55 +0100 Subject: [PATCH] Catch an IndexError occurring in Files Tab when scrolling through long list of torrents --- deluge/ui/gtkui/files_tab.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index 1f570a386..f3431ecc5 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -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