Skip to content

Commit 7d45424

Browse files
committed
duh why did my compiler allow that?
1 parent 98ae94f commit 7d45424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static PyObject* BaseException_add_timestamp_to_dict(PyBaseExceptionObject *self
249249
PyObject *ts = PyLong_FromLongLong(self->timestamp_ns);
250250
if (!ts)
251251
return NULL;
252-
if (PyDict_SetItemString(dict, &_Py_ID(__timestamp_ns__), ts) == -1) {
252+
if (PyDict_SetItem(dict, &_Py_ID(__timestamp_ns__), ts) == -1) {
253253
Py_DECREF(ts);
254254
return NULL;
255255
}

0 commit comments

Comments
 (0)