rpmdb open failing is certainly an rpm error, not TypeError
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Oct 2009 12:38:45 +0000 (15:38 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Oct 2009 12:38:45 +0000 (15:38 +0300)
python/rpmts-py.c

index f29df78..0012660 100644 (file)
@@ -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;
        }
     }