Fix a type error in a previous patch I made to this module.

I should not ignore compiler warnings!
This commit is contained in:
Guido van Rossum 2007-08-08 02:29:35 +00:00
parent a9769c26a3
commit 3045c7c060
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ dbm_ass_sub(dbmobject *dp, PyObject *v, PyObject *w)
if (w == NULL) {
if ( dbm_delete(dp->di_dbm, krec) < 0 ) {
dbm_clearerr(dp->di_dbm);
PyErr_SetString(PyExc_KeyError, v);
PyErr_SetObject(PyExc_KeyError, v);
return -1;
}
} else {