comparison src/if_py_both.h @ 4984:5b2c8f3b3906 v7.3.1237

updated for version 7.3.1237 Problem: Python: non-import errors not handled correctly. Solution: Let non-ImportError exceptions pass the finder. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Sun, 23 Jun 2013 16:40:39 +0200
parents 39980afcf54a
children e130cc3d17af
comparison
equal deleted inserted replaced
4983:ca16c61923aa 4984:5b2c8f3b3906
1197 1197
1198 Py_DECREF(new_path); 1198 Py_DECREF(new_path);
1199 1199
1200 if (!module) 1200 if (!module)
1201 { 1201 {
1202 if (PyErr_Occurred())
1203 {
1204 if (PyErr_ExceptionMatches(PyExc_ImportError))
1205 PyErr_Clear();
1206 else
1207 return NULL;
1208 }
1209
1202 Py_INCREF(Py_None); 1210 Py_INCREF(Py_None);
1203 return Py_None; 1211 return Py_None;
1204 } 1212 }
1205 1213
1206 if (!(loader = PyObject_NEW(LoaderObject, &LoaderType))) 1214 if (!(loader = PyObject_NEW(LoaderObject, &LoaderType)))