/// <summary> /// Handle a python error (e.g. clear error) /// </summary> /// <remarks> /// This checks if an error actually occured and clears the error /// </remarks> private void HandlePythonError() { // TODO: Save the python error to a log file? if (Py.PyErr_Occurred() != IntPtr.Zero) { Py.PyErr_Clear(); } return; }