Skip to content

Commit

Permalink
[3.12] gh-128198: Add missing error checks for usages of PyIter_Next() (
Browse files Browse the repository at this point in the history
GH-128199) (GH-128273)

(cherry picked from commit 5c814c8)

Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
  • Loading branch information
serhiy-storchaka and WolframAlph authored Dec 26, 2024
1 parent 11b8909 commit f699151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Objects/namespaceobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ namespace_repr(PyObject *ns)
goto error;
}

if (PyErr_Occurred()) {
goto error;
}

separator = PyUnicode_FromString(", ");
if (separator == NULL)
goto error;
Expand Down

0 comments on commit f699151

Please sign in to comment.