Log message for revision 113699:
  Be a bit more defensive about cache contents
  

Changed:
  U   
Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py

-=-
Modified: 
Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
===================================================================
--- 
Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py    
    2010-06-19 18:12:51 UTC (rev 113698)
+++ 
Zope/trunk/src/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py    
    2010-06-19 18:32:23 UTC (rev 113699)
@@ -174,7 +174,9 @@
 
     security.declarePrivate('_remove_data')
     def _remove_data(self):
-        caches.pop(self.__cacheid)
+        cid = self.__cacheid
+        if cid in caches:
+            caches.pop(self.__cacheid)
 
     security.declarePrivate('_resetCacheId')
     def _resetCacheId(self):

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to