diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:21:50 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:21:50 (GMT) |
commit | 5400b6b2e295ea96ac96169692c3c50b91b17ed6 (patch) | |
tree | 51f836f34cd36371542b5cced2f25f99f5082dd5 | |
parent | 06847b13ca28ef88e0ded4ce985c46317ba8cdaf (diff) | |
download | cpython-5400b6b2e295ea96ac96169692c3c50b91b17ed6.zip cpython-5400b6b2e295ea96ac96169692c3c50b91b17ed6.tar.gz cpython-5400b6b2e295ea96ac96169692c3c50b91b17ed6.tar.bz2 |
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
-rw-r--r-- | Lib/traceback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 31b8255..3d877ee 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: |