From: Guido van Rossum Date: Wed, 8 Aug 2007 02:29:35 +0000 (+0000) Subject: Fix a type error in a previous patch I made to this module. X-Git-Tag: v3.0a1~495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3045c7c0603666e56d4089d3ef9407ed27b9c94d;p=python Fix a type error in a previous patch I made to this module. I should not ignore compiler warnings! --- diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c index 816251adb7..a6c9e9978b 100644 --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -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 {