From ab1eacf37a1e9125196dca105a59b186fc1783e2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 22 Oct 2008 15:24:50 +0200 Subject: * python/metaindex.cc - fix crash when incorrect attribute is given --- python/metaindex.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/metaindex.cc b/python/metaindex.cc index c9a86ab4..45c8ef2a 100644 --- a/python/metaindex.cc +++ b/python/metaindex.cc @@ -38,6 +38,9 @@ static PyObject *MetaIndexAttr(PyObject *Self,char *Name) } return List; } + + PyErr_SetString(PyExc_AttributeError,Name); + return 0; } static PyObject *MetaIndexRepr(PyObject *Self) -- cgit v1.2.3