[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/pas/zodb.py Added comment about why `except TypeError:` is used.

Florent Guillaume fg at nuxeo.com
Mon Oct 11 07:17:55 EDT 2004


Log message for revision 27962:
  Added comment about why `except TypeError:` is used.
  


Changed:
  U   Zope3/trunk/src/zope/app/pas/zodb.py


-=-
Modified: Zope3/trunk/src/zope/app/pas/zodb.py
===================================================================
--- Zope3/trunk/src/zope/app/pas/zodb.py	2004-10-11 11:16:37 UTC (rev 27961)
+++ Zope3/trunk/src/zope/app/pas/zodb.py	2004-10-11 11:17:54 UTC (rev 27962)
@@ -116,6 +116,8 @@
         try:
             return self._principal_by_id[id][0], None
         except TypeError:
+            # We were not passed an integer id, for instance
+            # because traversal to a view was attempted.
             raise KeyError, id
 
     def get(self, id, default=None):



More information about the Zope3-Checkins mailing list