commit | 77324fc9d3206a12f5ae39da1574be3ee1273591 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 17 22:37:03 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 17 22:37:03 2016 +0100 |
tree | aca0c1818fb8f4869a3bd81e02c11132c00ca77f | |
parent | 85084ef1e999dcf50e8d466106a33bac24a0febb [diff] [blame] |
patch 7.4.1129 Problem: Python None value can't be converted to a Vim value. Solution: Just use zero. (Damien)
diff --git a/src/if_py_both.h b/src/if_py_both.h index 1ad7dc6..e220e3f 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -5521,7 +5521,7 @@ } 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); }