Skip to content

Commit

Permalink
add todo for later
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 22, 2024
1 parent 26dc7f5 commit aab9e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ void raise_exception(as_error *err)
PyObject *py_module_dict = PyModule_GetDict(py_module);
bool found = false;

// TODO: this is not atomic enough
Py_BEGIN_CRITICAL_SECTION(py_module_dict);
while (PyDict_Next(py_module_dict, &pos, &py_key, &py_value)) {
if (PyObject_HasAttrString(py_value, "code")) {
Expand Down

0 comments on commit aab9e2c

Please sign in to comment.