From 17d0527cf87d91b4fca380b17f3be438f466efdc Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 2 Jan 2013 01:36:53 +0100 Subject: Fix a traceback with corrections --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index 09cafd91..f6d71fb2 100644 --- a/src/windows.py +++ b/src/windows.py @@ -948,7 +948,7 @@ class TextWin(Win): for i in range(len(self.built_lines)-1, -1, -1): if self.built_lines[i] and self.built_lines[i].msg.identifier == old_id: index = i - while index >= 0 and self.built_lines[index].msg.identifier == old_id: + while index >= 0 and self.built_lines[index] and self.built_lines[index].msg.identifier == old_id: self.built_lines.pop(index) index -= 1 index += 1 -- cgit v1.2.3