The following functions set exceptions automatically: PyImport_ImportModule, PyObject_GetAttrString, PyArg_ParseTuple. All the exception setting functions in c_overviewer should act the same way and set their own exceptions before returning. Notably, PyDict_GetItemString does *not* set exceptions, so it is handled specially in render_mode_find_interface.