diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-05 15:38:45 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-05 15:38:45 +0300 |
commit | 0cddef5a4a2b279d0da39c765312cc2deaa7de07 (patch) | |
tree | 09c1e0784b63ecce26feb993c5cf392046d7ef85 /python/rpmts-py.c | |
parent | e3a1720f4e1f5ae972a8f56275113adca179c80e (diff) | |
download | librpm-tizen-0cddef5a4a2b279d0da39c765312cc2deaa7de07.tar.gz librpm-tizen-0cddef5a4a2b279d0da39c765312cc2deaa7de07.tar.bz2 librpm-tizen-0cddef5a4a2b279d0da39c765312cc2deaa7de07.zip |
rpmdb open failing is certainly an rpm error, not TypeError
Diffstat (limited to 'python/rpmts-py.c')
-rw-r--r-- | python/rpmts-py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c index f29df789c..001266097 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -579,7 +579,7 @@ rpmts_Match(rpmtsObject * s, PyObject * args, PyObject * kwds) if (rpmtsGetRdb(s->ts) == NULL) { int rc = rpmtsOpenDB(s->ts, O_RDONLY); if (rc || rpmtsGetRdb(s->ts) == NULL) { - PyErr_SetString(PyExc_TypeError, "rpmdb open failed"); + PyErr_SetString(pyrpmError, "rpmdb open failed"); return NULL; } } |