Skip to content

Commit 6dbc2dd

Browse files
committed
updated for version 7.3.1312
Problem: Not giving correct error messages for SystemExit(). Solution: Move E858 into an else. (Ken Takata)
1 parent 9592d73 commit 6dbc2dd

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/if_py_both.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5103,14 +5103,17 @@ run_eval(const char *cmd, typval_T *rettv
51035103
run_ret = PyRun_String((char *)cmd, Py_eval_input, globals, globals);
51045104
if (run_ret == NULL)
51055105
{
5106-
if (PyErr_ExceptionMatches(PyExc_SystemExit))
5106+
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit))
51075107
{
51085108
EMSG2(_(e_py_systemexit), "python");
51095109
PyErr_Clear();
51105110
}
5111-
if (PyErr_Occurred() && !msg_silent)
5112-
PyErr_PrintEx(0);
5113-
EMSG(_("E858: Eval did not return a valid python object"));
5111+
else
5112+
{
5113+
if (PyErr_Occurred() && !msg_silent)
5114+
PyErr_PrintEx(0);
5115+
EMSG(_("E858: Eval did not return a valid python object"));
5116+
}
51145117
}
51155118
else
51165119
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1312,
731733
/**/
732734
1311,
733735
/**/

0 commit comments

Comments
 (0)