summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-17 22:37:03 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-17 22:37:03 +0100
commit77324fc9d3206a12f5ae39da1574be3ee1273591 (patch)
treeaca0c1818fb8f4869a3bd81e02c11132c00ca77f /src/if_py_both.h
parent85084ef1e999dcf50e8d466106a33bac24a0febb (diff)
downloadvim-git-77324fc9d3206a12f5ae39da1574be3ee1273591.tar.gz
patch 7.4.1129v7.4.1129
Problem: Python None value can't be converted to a Vim value. Solution: Just use zero. (Damien)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 1ad7dc616..e220e3fec 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -5521,7 +5521,7 @@ run_eval(const char *cmd, typval_T *rettv
}
else
{
- if (ConvertFromPyObject(run_ret, rettv) == -1)
+ if (run_ret != Py_None && ConvertFromPyObject(run_ret, rettv) == -1)
EMSG(_("E859: Failed to convert returned python object to vim value"));
Py_DECREF(run_ret);
}