From 53d10aa3a321e641401ae672afbcbb05d7a0a75a Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 28 Mar 2015 20:51:08 +0100 Subject: [PATCH] Fix sticky exception when passing over overloads with single string arg. --- dtool/src/interrogate/interfaceMakerPythonNative.cxx | 2 ++ 1 file changed, 2 insertions(+) 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)) {