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

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


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

Modified Files:
      Tag: CMF-1_4-branch
	SyndicationTool.py 
Log Message:
CMFDefault.SyndicationTool: Zope 2.8 raises AttributeError where
earlier Zopes used to raise KeyError.


=== Products/CMFDefault/SyndicationTool.py 1.18.20.4 => 1.18.20.5 ===
--- Products/CMFDefault/SyndicationTool.py:1.18.20.4	Fri Apr 22 17:43:47 2005
+++ Products/CMFDefault/SyndicationTool.py	Mon Jun 13 05:18:07 2005
@@ -127,7 +127,7 @@
         else:
             try:
                 del self.syUpdatePeriod
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if updateFrequency is not None:
@@ -135,7 +135,7 @@
         else:
             try:
                 del self.syUpdateFrequency
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if updateBase is not None:
@@ -145,7 +145,7 @@
         else:
             try:
                 del self.syUpdateBase
-            except KeyError:
+            except (AttributeError, KeyError):
                 pass
 
         if max_items is not None:
@@ -153,7 +153,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