Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cc69e commit c7745d4Copy full SHA for c7745d4
1 file changed
Lib/code.py
@@ -137,6 +137,7 @@ def showsyntaxerror(self, filename=None):
137
except:
138
# If that failed, assume SyntaxError is a string
139
value = msg, (filename, lineno, offset, line)
140
+ sys.last_value = value
141
list = traceback.format_exception_only(type, value)
142
map(self.write, list)
143
0 commit comments