Skip to content

Commit b272287

Browse files
davepecksobolevn
andauthored
Update Objects/templateobject.c
Co-authored-by: sobolevn <[email protected]>
1 parent dacafdb commit b272287

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Objects/templateobject.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ _PyTemplate_Concat(PyObject *self, PyObject *other)
301301
{
302302
if (_PyTemplate_CheckExact(self) && _PyTemplate_CheckExact(other)) {
303303
return template_concat_templates((templateobject *) self, (templateobject *) other);
304-
} else {
305-
PyErr_Format(PyExc_TypeError,
306-
"can only concatenate Template (not \"%.200s\") to Template",
307-
Py_TYPE(other)->tp_name);
308-
return NULL;
309304
}
305+
306+
PyErr_Format(PyExc_TypeError,
307+
"can only concatenate Template (not \"%T\") to Template",
308+
tp_name);
309+
return NULL;
310310
}
311311

312312
static PyObject *

0 commit comments

Comments
 (0)