From 470a6736f2a70841f59c960dfbb1139e098f8a4f Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 18 Feb 2019 17:43:58 +0100 Subject: [PATCH] Use default argument value to `ConvertPyError` --- cpp/src/arrow/python/deserialize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/python/deserialize.cc b/cpp/src/arrow/python/deserialize.cc index 95b7b7a4ec969..f17abbe7cb38f 100644 --- a/cpp/src/arrow/python/deserialize.cc +++ b/cpp/src/arrow/python/deserialize.cc @@ -87,7 +87,7 @@ Status DeserializeDict(PyObject* context, const Array& array, int64_t start_idx, int ret = PyDict_SetItem(result.obj(), PyList_GET_ITEM(keys.obj(), i - start_idx), PyList_GET_ITEM(vals.obj(), i - start_idx)); if (ret != 0) { - return ConvertPyError(StatusCode::PythonError); + return ConvertPyError(); } } static PyObject* py_type = PyUnicode_FromString("_pytype_");