[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - __init__.py:1.7
Jim Fulton
jim@zope.com
Tue, 11 Feb 2003 14:14:20 -0500
Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv16117
Modified Files:
__init__.py
Log Message:
Added object to error message.
=== Zope3/src/zope/app/traversing/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/traversing/__init__.py:1.6 Mon Dec 30 11:11:57 2002
+++ Zope3/src/zope/app/traversing/__init__.py Tue Feb 11 14:14:19 2003
@@ -104,7 +104,7 @@
parent = getWrapperContext(obj)
if parent is not None:
return parent
- raise TypeError, "Not enough context information to get parent"
+ raise TypeError("Not enough context information to get parent", obj)
def getParents(obj):
"""Returns a list starting with the given object's parent followed by