From 5296fc7d4c936fcdf58389a1c1b886a667d0c80a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 22 Apr 2011 11:42:48 +0100 Subject: [PATCH] Fix one more possible issue with regard to #1786 --- deluge/ui/gtkui/listview.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py index 35c7b7655..b5c61813a 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -627,7 +627,13 @@ class ListView: # Column is not visible, no need to reposition continue - column_at_position = columns[col_state.position] + try: + column_at_position = columns[col_state.position] + except IndexError: + # While updating the multiuser branch, which adds a new column + # an IndexError was raised, just continue processing, once + # deluge is restarted, it all should be good + continue if col_state.name == column_at_position.get_title(): # It's in the right position continue