summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e5dc41f..dfdc711 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -656,6 +656,8 @@ PyErr_Print()
if (code) {
Py_DECREF(v);
v = code;
+ if (v == Py_None)
+ Py_Exit(0);
}
/* if we failed to dig out the "code" attribute,
then just let the else clause below print the