mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
only finish error if one occurred
This commit is contained in:
parent
c0beabc2a5
commit
205ad61313
1 changed files with 2 additions and 1 deletions
|
@ -835,7 +835,8 @@ PyAST_FromNode(const node *n, PyCompilerFlags *flags, const char *filename,
|
|||
PyTuple_SET_ITEM(c.c_normalize_args, 1, NULL);
|
||||
Py_DECREF(c.c_normalize_args);
|
||||
}
|
||||
ast_error_finish(filename);
|
||||
if (!res)
|
||||
ast_error_finish(filename);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue