more db.py

This commit is contained in:
Michael Davidsaver
2013-03-31 09:45:10 -04:00
parent 61057e7c81
commit 63aaf8afe7
3 changed files with 47 additions and 9 deletions

View File

@ -50,7 +50,7 @@ static int pyField_Init(pyField *self, PyObject *args, PyObject *kws)
}
if(self->addr.field_type >= DBF_ENUM) {
PyErr_SetString(PyExc_ValueError, "Access to this field type is not supported");
PyErr_SetString(PyExc_TypeError, "Access to this field type is not supported");
return -1;
}
return 0;