summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index b2030f7..36a529e 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -91,7 +91,7 @@ _PyErr_CreateException(PyObject *exception_type, PyObject *value)
PyObject *exc;
if (value == NULL || value == Py_None) {
- exc = _PyObject_CallNoArg(exception_type);
+ exc = _PyObject_CallNoArgs(exception_type);
}
else if (PyTuple_Check(value)) {
exc = PyObject_Call(exception_type, value, NULL);