Skip to content

Commit

Permalink
add another error check
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Jan 11, 2024
1 parent f1d7f01 commit a8a74f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/pyarrow/src/arrow/python/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ class PythonErrorDetail : public StatusDetail {
std::stringstream ss;
ss << "Python exception: ";
Py_ssize_t num_lines = PySequence_Length(formatted.obj());
RETURN_IF_PYERROR();

for (Py_ssize_t i = 0; i < num_lines; ++i) {
Py_ssize_t line_size;

Expand Down

0 comments on commit a8a74f2

Please sign in to comment.