summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2012-04-06 19:36:26 +0000
committerTres Seaver <tseaver@palladion.com>2012-04-06 19:36:26 +0000
commit0316dbeedd9763cf76df57fb65011346efaf2ba7 (patch)
treef4002284ab01ff9f177fbbfb71c2bb6e23f422ac /src
parent89aba77a3e2a34ec3977bf76f34040582fbf0939 (diff)
downloadzope-exceptions-0316dbeedd9763cf76df57fb65011346efaf2ba7.tar.gz
Clarify exception when both 'tb' and 'f' are passed.
Diffstat (limited to 'src')
-rw-r--r--src/zope/exceptions/exceptionformatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/exceptions/exceptionformatter.py b/src/zope/exceptions/exceptionformatter.py
index 493ff0f..a11c6b7 100644
--- a/src/zope/exceptions/exceptionformatter.py
+++ b/src/zope/exceptions/exceptionformatter.py
@@ -103,7 +103,7 @@ class TextExceptionFormatter(object):
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