summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-01-02 01:36:53 +0100
committermathieui <mathieui@mathieui.net>2013-01-02 01:36:53 +0100
commit17d0527cf87d91b4fca380b17f3be438f466efdc (patch)
treeff7898e74552f8122890e925bc227345c34a5bd6 /src/windows.py
parent677b944d3822030d917a835293fcc81fca6e8e54 (diff)
downloadpoezio-17d0527cf87d91b4fca380b17f3be438f466efdc.tar.gz
poezio-17d0527cf87d91b4fca380b17f3be438f466efdc.tar.bz2
poezio-17d0527cf87d91b4fca380b17f3be438f466efdc.tar.xz
poezio-17d0527cf87d91b4fca380b17f3be438f466efdc.zip
Fix a traceback with corrections
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
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