From fdfb1b48b0fd12aea2478ff6ddd152225e4c2239 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 21 Jan 2010 01:55:48 +0000 Subject: [PATCH] 3527: People View sometimes skips items because of LRU key error svn: r14103 --- src/Lru.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lru.py b/src/Lru.py index 212956e7a..4928cbc1f 100644 --- a/src/Lru.py +++ b/src/Lru.py @@ -75,7 +75,8 @@ class LRU(object): lnk.next.prev = None self.first = lnk.next lnk.next = None - del self.data[lnk.value[0]] + if lnk.value[0] in self.data: + del self.data[lnk.value[0]] del lnk def __delitem__(self, obj):