summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index f5617acfc..cd8080041 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -861,7 +861,7 @@ DictionaryItem(PyObject *self, PyObject *keyObject)
if (di == NULL)
{
- PyErr_SetString(PyExc_IndexError, _("no such key in dictionary"));
+ PyErr_SetString(PyExc_KeyError, _("no such key in dictionary"));
return NULL;
}