From 09a56ae03c4de98963b95e730620d3d8ffe57652 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 800e72761..53db593b2 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -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