summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-01 01:21:50 +0000
committerBrett Cannon <bcannon@gmail.com>2008-08-01 01:21:50 +0000
commit5400b6b2e295ea96ac96169692c3c50b91b17ed6 (patch)
tree51f836f34cd36371542b5cced2f25f99f5082dd5
parent06847b13ca28ef88e0ded4ce985c46317ba8cdaf (diff)
downloadcpython-git-5400b6b2e295ea96ac96169692c3c50b91b17ed6.tar.gz
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
-rw-r--r--Lib/traceback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 31b8255379..3d877ee150 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -181,7 +181,7 @@ def format_exception_only(etype, value):
# It was a syntax error; show exactly where the problem was found.
lines = []
try:
- msg, (filename, lineno, offset, badline) = value
+ msg, (filename, lineno, offset, badline) = value.args
except Exception:
pass
else: