We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98ae94f commit 7d45424Copy full SHA for 7d45424
Objects/exceptions.c
@@ -249,7 +249,7 @@ static PyObject* BaseException_add_timestamp_to_dict(PyBaseExceptionObject *self
249
PyObject *ts = PyLong_FromLongLong(self->timestamp_ns);
250
if (!ts)
251
return NULL;
252
- if (PyDict_SetItemString(dict, &_Py_ID(__timestamp_ns__), ts) == -1) {
+ if (PyDict_SetItem(dict, &_Py_ID(__timestamp_ns__), ts) == -1) {
253
Py_DECREF(ts);
254
255
}
0 commit comments