From 72b56e831fdc35f06b5e3aa7d071879d3b6df762 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 10 Dec 1995 04:57:42 +0000 Subject: [PATCH] don't return from main loop when error occurs --- Python/ceval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index be1e1745d85..35c89988c0b 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; } } }