more db.py

This commit is contained in:
Michael Davidsaver committed 2013-03-31 09:45:10 -04:00
1 parent 61057e7c81
commit 63aaf8afe7
3 files changed
+47 -9

No files matched your search

+1 -1
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;