summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-08 02:29:35 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-08 02:29:35 (GMT)
commit3045c7c0603666e56d4089d3ef9407ed27b9c94d (patch)
tree2c3763c787495b2ace4aa32896592c60a8d118d1 /Modules
parenta9769c26a35d788f44fa7ed4f3652a156055fb45 (diff)
downloadcpython-3045c7c0603666e56d4089d3ef9407ed27b9c94d.zip
cpython-3045c7c0603666e56d4089d3ef9407ed27b9c94d.tar.gz
cpython-3045c7c0603666e56d4089d3ef9407ed27b9c94d.tar.bz2
Fix a type error in a previous patch I made to this module.
I should not ignore compiler warnings!
Diffstat (limited to 'Modules')
-rw-r--r--Modules/dbmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c
index 816251a..a6c9e99 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 {