From 88fee0854794b3605c6c26ac7fe162691c406f8d Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 18 Apr 2007 20:26:09 +0000 Subject: [PATCH] fix error message output --- dtool/src/interrogatedb/py_panda.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/interrogatedb/py_panda.cxx b/dtool/src/interrogatedb/py_panda.cxx index 68efbf02eb..090c469df4 100644 --- a/dtool/src/interrogatedb/py_panda.cxx +++ b/dtool/src/interrogatedb/py_panda.cxx @@ -106,7 +106,7 @@ DTOOL_Call_GetPointerThisClass(PyObject *self, Dtool_PyTypedObject *classdef, ostringstream str; str << function_name << "() argument " << param << " must be "; - PyObject *fname = PyObject_GetAttrString((PyObject *)classdef->_PyType.ob_type, "__name__"); + PyObject *fname = PyObject_GetAttrString((PyObject *)classdef, "__name__"); if (fname != (PyObject *)NULL) { str << PyString_AsString(fname); Py_DECREF(fname);