summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index a0d2dcc..437e29b 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -178,7 +178,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: