[Checkins] SVN: zope.exceptions/branches/tseaver-no_2to3/src/zope/exceptions/exceptionformatter.py Clarify exception when both 'tb' and 'f' are passed.
Tres Seaver
cvs-admin at zope.org
Fri Apr 6 19:36:29 UTC 2012
Log message for revision 125021:
Clarify exception when both 'tb' and 'f' are passed.
Changed:
U zope.exceptions/branches/tseaver-no_2to3/src/zope/exceptions/exceptionformatter.py
-=-
Modified: zope.exceptions/branches/tseaver-no_2to3/src/zope/exceptions/exceptionformatter.py
===================================================================
--- zope.exceptions/branches/tseaver-no_2to3/src/zope/exceptions/exceptionformatter.py 2012-04-06 19:36:22 UTC (rev 125020)
+++ zope.exceptions/branches/tseaver-no_2to3/src/zope/exceptions/exceptionformatter.py 2012-04-06 19:36:26 UTC (rev 125021)
@@ -103,7 +103,7 @@
elif not tb and f:
lineno = f.f_lineno
else:
- raise ValueError("tb or f needs to be passed")
+ raise ValueError("Pass exactly one of tb or f")
co = f.f_code
filename = co.co_filename
name = co.co_name
More information about the checkins
mailing list