0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.907

Problem:    Python uses IndexError when a dict key is not found.
Solution:   Use KeyError instead. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-04-24 13:04:26 +02:00
parent 3f99152276
commit af6abb9d93
6 changed files with 13 additions and 3 deletions

View File

@@ -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;
}