Skip to content

Commit 26d4e95

Browse files
committed
FIXED: Generate error on py_call(Obj:attr, Val) if attr does not exist
1 parent 31068c9 commit 26d4e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

janus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ py_eval(PyObject *obj, term_t func)
595595
PyObject *py_res = NULL;
596596

597597
if ( PL_get_chars(func, &attr, CVT_ATOM) )
598-
{ return PyObject_GetAttrString(obj, attr);
598+
{ return check_error(PyObject_GetAttrString(obj, attr));
599599
} else if ( PL_get_name_arity(func, &fname, &arity) )
600600
{ PyObject *py_func = NULL;
601601
PyObject *py_argv = NULL;

0 commit comments

Comments
 (0)