Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
iritkatriel authored Jan 17, 2024
commit 2c882e08d8ce96fd3e446a66234f6d9d4c122d05
4 changes: 2 additions & 2 deletions Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,11 +1214,11 @@ get_exception_notes(struct exception_print_context *ctx, PyObject *value, PyObje
}
note = PyUnicode_FromFormat("Ignored error getting __notes__: %R", errvalue);
if (!note) {
Py_XDECREF(*notes);
Py_DECREF(*notes);
goto error;
Comment thread
perrinjerome marked this conversation as resolved.
}
Comment thread
perrinjerome marked this conversation as resolved.
if (PyList_SetItem(*notes, 0, note) < 0) {
Py_XDECREF(*notes);
Py_DECREF(*notes);
goto error;
Comment thread
perrinjerome marked this conversation as resolved.
}
}
Expand Down