Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Sep 27, 2024
1 parent ad34c1a commit bdc85a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
PyObject *py_field = \
PyDict_GetItemWithError(py_policy, py_field_name); \
if (py_field == NULL && PyErr_Occurred()) { \
PyErr_PrintEx(); \
PyErr_Print(); \
Py_DECREF(py_field_name); \
return as_error_update( \
err, AEROSPIKE_ERR_CLIENT, \
Expand Down Expand Up @@ -102,7 +102,8 @@
PyObject *py_exp_list = \
PyDict_GetItemWithError(py_policy, py_field_name); \
if (py_exp_list == NULL && PyErr_Occurred()) { \
PyErr_PrintEx(py_field_name); \
PyErr_Print(); \
Py_DECREF(py_field_name); \
return as_error_update( \
err, AEROSPIKE_ERR_CLIENT, \
"Unable to fetch field from policy dictionary"); \
Expand Down

0 comments on commit bdc85a0

Please sign in to comment.