Skip to content

Commit 6ddcb01

Browse files
committed
PyErr_SetString instead of PyErr_Format
1 parent b163b28 commit 6ddcb01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/moduleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ PyObject *
647647
PyModule_FromSlotsAndSpec(const PyModuleDef_Slot *slots, PyObject *spec)
648648
{
649649
if (!slots) {
650-
PyErr_Format(
650+
PyErr_SetString(
651651
PyExc_SystemError,
652652
"PyModule_FromSlotsAndSpec called with NULL slots");
653653
return NULL;

0 commit comments

Comments
 (0)