Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Sep 17, 2024
1 parent 669bd2e commit 293bfd9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,11 @@ int raise_exception_with_api_call_extra_info(as_error *err,
as_exc_extra_info *curr_pair = extra_info;
while (curr_pair->attr_name != NULL) {
if (PyObject_HasAttrString(py_exc_class, curr_pair->attr_name)) {
// TODO: leave off from here
retval = PyObject_SetAttrString(
py_exc_class, curr_pair->attr_name, curr_pair->py_value);
if (retval == -1) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
PyErr_Clear();
}
else {
goto cleanup_err_tuple;
}
goto cleanup_err_tuple;
}
}
curr_pair++;
Expand Down

0 comments on commit 293bfd9

Please sign in to comment.