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; } } }