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 036e849 commit f467521Copy full SHA for f467521
2 files changed
Lib/idlelib/run.py
@@ -339,6 +339,10 @@ def runcode(self, code):
339
exec(code, self.locals)
340
finally:
341
interruptable = False
342
+ except SystemExit:
343
+ # Scripts that raise SystemExit should just
344
+ # return to the interactive prompt
345
+ pass
346
except:
347
self.usr_exc_info = sys.exc_info()
348
if quitting:
Misc/NEWS
@@ -81,6 +81,8 @@ Library
81
IDLE
82
----
83
84
+- Issue #18196: Avoid displaying spurious SystemExit tracebacks.
85
+
86
- Issue #5492: Avoid traceback when exiting IDLE caused by a race condition.
87
88
- Issue #17511: Keep IDLE find dialog open after clicking "Find Next".
0 commit comments