diff options
Diffstat (limited to 'Lib/code.py')
-rw-r--r-- | Lib/code.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/code.py b/Lib/code.py index ab1050c12e7..d56681c9e62 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -137,6 +137,7 @@ class InteractiveInterpreter: except: # If that failed, assume SyntaxError is a string value = msg, (filename, lineno, offset, line) + sys.last_value = value list = traceback.format_exception_only(type, value) map(self.write, list) |