commit | 7e85d3d432e799fc56126f6e3867b52539978343 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 23 16:40:39 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 23 16:40:39 2013 +0200 |
tree | 7e94ca76eea48b20be0f1ec49128678880d601c8 | |
parent | dee2e315d786cbe9d5bba2d388fb72d96ad1a846 [diff] [blame] |
updated for version 7.3.1237 Problem: Python: non-import errors not handled correctly. Solution: Let non-ImportError exceptions pass the finder. (ZyX)
diff --git a/src/if_py_both.h b/src/if_py_both.h index 8f60550..4f977c3 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -1199,6 +1199,14 @@ if (!module) { + if (PyErr_Occurred()) + { + if (PyErr_ExceptionMatches(PyExc_ImportError)) + PyErr_Clear(); + else + return NULL; + } + Py_INCREF(Py_None); return Py_None; }