diff options
author | Guido van Rossum <guido@python.org> | 1995-12-10 04:57:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-12-10 04:57:42 (GMT) |
commit | 72b56e831fdc35f06b5e3aa7d071879d3b6df762 (patch) | |
tree | e1c720fd389fa75ee506820ea3d3c75338501464 /Python/ceval.c | |
parent | 9cfea10bf2fbebd65a2f81e60bc48576c905ee9e (diff) | |
download | cpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.zip cpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.tar.gz cpython-72b56e831fdc35f06b5e3aa7d071879d3b6df762.tar.bz2 |
don't return from main loop when error occurs
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
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; } } } |