Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72b56e8

Browse files
committed
don't return from main loop when error occurs
1 parent 9cfea10 commit 72b56e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ceval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,8 @@ eval_code2(co, globals, locals,
15351535
else {
15361536
err_setstr(TypeError,
15371537
"unbound method must be called with class instance 1st argument");
1538-
return NULL;
1538+
x = NULL;
1539+
break;
15391540
}
15401541
}
15411542
}

0 commit comments

Comments
 (0)