]> granicus.if.org Git - python/commitdiff
don't return from main loop when error occurs
authorGuido van Rossum <guido@python.org>
Sun, 10 Dec 1995 04:57:42 +0000 (04:57 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 10 Dec 1995 04:57:42 +0000 (04:57 +0000)
Python/ceval.c

index be1e1745d85b4498fe6d058872ed8aeb402cd5b4..35c89988c0bbb3f61cfae05ccab567d9439797b6 100644 (file)
@@ -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;
                                        }
                                }
                        }