mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (GH-142725) (#142726)
Co-authored-by: AZero13 <gfunni234@gmail.com>
This commit is contained in:
parent
e0243c664c
commit
bf4f508704
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ _PyPegen_raise_tokenizer_init_error(PyObject *filename)
|
|||
|
||||
tuple = PyTuple_Pack(2, errstr, tmp);
|
||||
Py_DECREF(tmp);
|
||||
if (!value) {
|
||||
if (!tuple) {
|
||||
goto error;
|
||||
}
|
||||
PyErr_SetObject(PyExc_SyntaxError, tuple);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue