[entropy.cache] make sure to filter out interpreter shutdown issues on EntropyCacher

This commit is contained in:
Fabio Erculiani
2009-07-07 08:01:20 +02:00
parent 2b9479518b
commit 6bd17f04de
+2 -1
View File
@@ -101,7 +101,8 @@ class EntropyCacher(Singleton):
with self.__cache_lock:
try:
data = self.__cache_buffer.pop()
except ValueError:
except (ValueError, TypeError,):
# TypeError is when objects are being destroyed
break # stack empty
key, data = data
d_o = self.dumpTools.dumpobj