python: do not raise in valid_seq() (#44287)

This commit is contained in:
Benjamin Dauvergne 2020-06-20 07:26:17 +02:00
parent 77bed35c42
commit 4696e2709b
1 changed files with 0 additions and 1 deletions

View File

@ -215,7 +215,6 @@ get_pystring_from_xml_node(xmlNode *xmlnode)
static gboolean
valid_seq(PyObject *seq) {
if (! seq || ( seq != Py_None && ! PyTuple_Check(seq))) {
PyErr_SetString(PyExc_TypeError, "value should be tuple");
return 0;
}
return 1;