From 6bd17f04dea50ff1e0623c7bf90bc133cd14ac5a Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 7 Jul 2009 08:01:20 +0200 Subject: [PATCH] [entropy.cache] make sure to filter out interpreter shutdown issues on EntropyCacher --- libraries/entropy/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/entropy/cache.py b/libraries/entropy/cache.py index b4c34f41c..4b06e6312 100644 --- a/libraries/entropy/cache.py +++ b/libraries/entropy/cache.py @@ -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