mirror of
https://github.com/python/cpython.git
synced 2026-01-26 04:48:57 +00:00
gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (#142725)
This commit is contained in:
parent
3f56186a2d
commit
d844d22cb0
@ -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…
x
Reference in New Issue
Block a user