Module: deluge Branch: chunked-sessionproxy-and-gtkui-speedups Commit: e0443943b5979e4e6663eb08b126d581a1208e57
Author: Calum Lind <[email protected]> Date: Fri May 27 19:06:55 2011 +0100 Catch an IndexError occurring in Files Tab when scrolling through long list of torrents --- deluge/ui/gtkui/files_tab.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index 1f570a3..f3431ec 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 -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
