Report inventor errors with PyErr_SetString.