0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.1237

Problem:    Python: non-import errors not handled correctly.
Solution:   Let non-ImportError exceptions pass the finder. (ZyX)
This commit is contained in:
Bram Moolenaar
2013-06-23 16:40:39 +02:00
parent dee2e315d7
commit 7e85d3d432
4 changed files with 12 additions and 2 deletions

View File

@@ -1199,6 +1199,14 @@ FinderFindModule(PyObject *self, PyObject *args)
if (!module)
{
if (PyErr_Occurred())
{
if (PyErr_ExceptionMatches(PyExc_ImportError))
PyErr_Clear();
else
return NULL;
}
Py_INCREF(Py_None);
return Py_None;
}