diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 7df894e12c7..cb76d77f68f 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -921,7 +921,7 @@ formatstring(format, args) XDECREF(temp); } /* '%' */ } /* until end */ - if (argidx < arglen) { + if (argidx < arglen && !dict) { err_setstr(TypeError, "not all arguments converted"); goto error; }