Skip to content

Commit

Permalink
app_python3: fetch tupple item to get parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 6, 2022
1 parent af1d9c1 commit b1f9045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/app_python3/apy_kemi.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ PyObject *sr_apy_kemi_exec_func_ex(sr_kemi_t *ket, PyObject *self, PyObject *arg
LM_ERR("invalid number of parameters - idx: %d argc: %d\n", i, (int)alen);
return sr_kemi_apy_return_false();
}
pobj = PyList_GetItem(args, i);
pobj = PyTuple_GetItem(args, i);
if(pobj==NULL) {
LM_ERR("null parameter - func: %.*s idx: %d argc: %d\n",
fname.len, fname.s, i, (int)alen);
Expand Down

0 comments on commit b1f9045

Please sign in to comment.