diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index b3776e6f12..0242377280 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -4659,6 +4659,8 @@ write_function_instance(ostream &out, FunctionRemap *remap, } expected_params += "str"; } + // Remember to clear the TypeError that any of the above methods raise. + clear_error = true; only_pyobjects = false; } else if (TypeManager::is_bool(type)) {