[Checkins] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/codegen.py Handle objects which do not have a __getitem__ method as well

Wichert Akkerman wichert at wiggy.net
Thu Nov 13 13:53:08 EST 2008


Log message for revision 92914:
  Handle objects which do not have a __getitem__ method as well

Changed:
  U   Sandbox/malthe/chameleon.core/src/chameleon/core/codegen.py

-=-
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/codegen.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/codegen.py	2008-11-13 18:52:23 UTC (rev 92913)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/codegen.py	2008-11-13 18:53:08 UTC (rev 92914)
@@ -41,7 +41,7 @@
         except AttributeError, e:
             try:
                 return obj[key]
-            except (KeyError, TypeError):
+            except (KeyError, TypeError, AttributeError):
                 raise e
 
     @classmethod



More information about the Checkins mailing list