commit | af6abb9d93959d801d40a2d77a96962cef2335fc | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 13:04:26 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 13:04:26 2013 +0200 |
tree | 2a4c39066970fd372b41b351535429df0f6e3b31 | |
parent | 3f99152276def2b8f88a3dd5f87f645e9e875da2 [diff] [blame] |
updated for version 7.3.907 Problem: Python uses IndexError when a dict key is not found. Solution: Use KeyError instead. (ZyX)
diff --git a/src/if_py_both.h b/src/if_py_both.h index f5617ac..cd80800 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -861,7 +861,7 @@ if (di == NULL) { - PyErr_SetString(PyExc_IndexError, _("no such key in dictionary")); + PyErr_SetString(PyExc_KeyError, _("no such key in dictionary")); return NULL; }