remove extra PyErr_Format arguments (closes #28454)

Patch from Xiang Zhang.
1 file changed