From af00066294bb180b609d6f612237c14ad48f0dec Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 5 Oct 2009 15:22:12 +0300 Subject: [PATCH] Type mismatch is TypeError, not rpm.error --- python/rpmmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 980aee0..65de3b0 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -64,7 +64,7 @@ static PyObject * setLogFile (PyObject * self, PyObject * args, PyObject *kwds) if (fop) { if (!PyFile_Check(fop)) { - PyErr_SetString(pyrpmError, "requires file object"); + PyErr_SetString(PyExc_TypeError, "requires file object"); return NULL; } fp = PyFile_AsFile(fop); -- 2.7.4