[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/back35.py Avoid to get a KeyError

Roger Ineichen roger at projekt01.ch
Sun Nov 12 21:56:12 EST 2006


Log message for revision 71115:
  Avoid to get a KeyError

Changed:
  U   Zope3/trunk/src/zope/app/component/back35.py

-=-
Modified: Zope3/trunk/src/zope/app/component/back35.py
===================================================================
--- Zope3/trunk/src/zope/app/component/back35.py	2006-11-12 22:13:58 UTC (rev 71114)
+++ Zope3/trunk/src/zope/app/component/back35.py	2006-11-13 02:56:10 UTC (rev 71115)
@@ -894,7 +894,7 @@
     def __setstate__(self, state):
         if '_registrations' in state:
             # convert data to generation 3 data structure:
-            next = state['next']
+            next = state.get('next')
             if next is None:
                 next = state['base']
             bases = (next, )



More information about the Zope3-Checkins mailing list