diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b9498e5fa2e..605d8a01079 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3448,7 +3448,7 @@ object_format(PyObject *self, PyObject *args) goto done; */ } - return PyObject_Format(self_as_str, format_spec); + result = PyObject_Format(self_as_str, format_spec); } done: