From c44877568d05c701512a735c9dd44eca8648609c Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Wed, 18 May 2005 17:39:06 +0000
Subject: [PATCH] Catch only KeyError.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3046 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/Cache.py b/product/ERP5Type/Cache.py
index 53aa89e80f..21827d8a5c 100755
--- a/product/ERP5Type/Cache.py
+++ b/product/ERP5Type/Cache.py
@@ -109,7 +109,7 @@ class CachingMethod:
           if obj.time + obj.duration < now:
             # LOG('CachingMethod', 0, 'expire %s' % index)
             del CachingMethod.cached_object_dict[index]
-      except:
+      except KeyError:
         # This is necessary for multi-threading, because two threads can
         # delete the same entry at a time.
         pass
-- 
2.30.9