mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (#142725)
This commit is contained in:
parent
3f56186a2d
commit
d844d22cb0
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