Commit 53ebf4b0 authored by Zackery Spytz's avatar Zackery Spytz Committed by Serhiy Storchaka

Fix an incorrect check in compiler_try_except(). (GH-9810)

parent fc439d20
......@@ -2738,8 +2738,9 @@ compiler_try_except(struct compiler *c, stmt_ty s)
cleanup_end = compiler_new_block(c);
cleanup_body = compiler_new_block(c);
if (!(cleanup_end || cleanup_body))
if (cleanup_end == NULL || cleanup_body == NULL) {
return 0;
}
compiler_nameop(c, handler->v.ExceptHandler.name, Store);
ADDOP(c, POP_TOP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment