summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-12-10 04:57:42 (GMT)
committerGuido van Rossum <guido@python.org>1995-12-10 04:57:42 (GMT)
commit72b56e831fdc35f06b5e3aa7d071879d3b6df762 (patch)
treee1c720fd389fa75ee506820ea3d3c75338501464 /Python
parent9cfea10bf2fbebd65a2f81e60bc48576c905ee9e (diff)
downloadcpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.zip
cpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.tar.gz
cpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.tar.bz2
don't return from main loop when error occurs
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index be1e174..35c8998 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1535,7 +1535,8 @@ eval_code2(co, globals, locals,
else {
err_setstr(TypeError,
"unbound method must be called with class instance 1st argument");
- return NULL;
+ x = NULL;
+ break;
}
}
}