[Zope-Checkins] CVS: Zope/lib/python/zExceptions - unauthorized.py:1.6
Shane Hathaway
shane@cvs.zope.org
Wed, 21 Aug 2002 15:58:34 -0400
Update of /cvs-repository/Zope/lib/python/zExceptions
In directory cvs.zope.org:/tmp/cvs-serv4590
Modified Files:
unauthorized.py
Log Message:
__str__() must never return None.
=== Zope/lib/python/zExceptions/unauthorized.py 1.5 => 1.6 ===
--- Zope/lib/python/zExceptions/unauthorized.py:1.5 Wed Aug 14 18:12:06 2002
+++ Zope/lib/python/zExceptions/unauthorized.py Wed Aug 21 15:58:34 2002
@@ -57,6 +57,7 @@
elif self.value is not None:
return ("You are not allowed to access %s in this context"
% self.getValueName(self.value))
+ return repr(self)
def getValueName(self):