Commit 3045c7c0 authored by Guido van Rossum's avatar Guido van Rossum

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

I should not ignore compiler warnings!
parent a9769c26
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment