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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user