Skip to content

Commit 0ca7f36

Browse files
author
brett.cannon
committed
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
git-svn-id: http://svn.python.org/projects/python/trunk@65346 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 0e3b870 commit 0ca7f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Lib/traceback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def format_exception_only(etype, value):
181181
# It was a syntax error; show exactly where the problem was found.
182182
lines = []
183183
try:
184-
msg, (filename, lineno, offset, badline) = value
184+
msg, (filename, lineno, offset, badline) = value.args
185185
except Exception:
186186
pass
187187
else:

0 commit comments

Comments
 (0)