[CMF-checkins] CVS: Products/CMFDefault - SyndicationTool.py:1.29

Stefan H. Holek stefan at epy.co.at
Mon Jun 13 05:18:08 EDT 2005


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv25902/CMFDefault

Modified Files:
	SyndicationTool.py 
Log Message:
CMFDefault.SyndicationTool: Zope 2.8 raises AttributeError where
earlier Zopes used to raise KeyError.


=== Products/CMFDefault/SyndicationTool.py 1.28 => 1.29 ===
--- Products/CMFDefault/SyndicationTool.py:1.28	Fri Apr 22 17:42:52 2005
+++ Products/CMFDefault/SyndicationTool.py	Mon Jun 13 05:17:08 2005
@@ -129,7 +129,7 @@
         else:
             try:
                 del self.syUpdatePeriod
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if updateFrequency is not None:
@@ -137,7 +137,7 @@
         else:
             try:
                 del self.syUpdateFrequency
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if updateBase is not None:
@@ -147,7 +147,7 @@
         else:
             try:
                 del self.syUpdateBase
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if max_items is not None:
@@ -155,7 +155,7 @@
         else:
             try:
                 del self.max_items
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if REQUEST is not None:



More information about the CMF-checkins mailing list