diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/header-py.c | 1 | ||||
-rw-r--r-- | python/rpmtd-py.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/python/header-py.c b/python/header-py.c index a06412775..5ca920e84 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -468,7 +468,6 @@ static int hdr_ass_subscript(hdrObject *s, PyObject *key, PyObject *value) } else if (rpmtdFromPyObject(value, &td)) { headerPut(s->h, td, HEADERPUT_DEFAULT); } else { - PyErr_SetString(PyExc_TypeError, "rpm.td type expected"); return -1; } return 0; diff --git a/python/rpmtd-py.c b/python/rpmtd-py.c index a84cab32e..1911e2535 100644 --- a/python/rpmtd-py.c +++ b/python/rpmtd-py.c @@ -206,6 +206,7 @@ int rpmtdFromPyObject(PyObject *obj, rpmtd *td) *td = &(((rpmtdObject *)obj)->td); return 1; } else { + PyErr_SetString(PyExc_TypeError, "rpm.td type expected"); return 0; } } |