Browse Source

Fix sticky exception when passing over overloads with single string arg.

rdb 10 years ago
parent
commit
53d10aa3a3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/interrogate/interfaceMakerPythonNative.cxx

+ 2 - 0
dtool/src/interrogate/interfaceMakerPythonNative.cxx

@@ -4659,6 +4659,8 @@ write_function_instance(ostream &out, FunctionRemap *remap,
         }
         }
         expected_params += "str";
         expected_params += "str";
       }
       }
+      // Remember to clear the TypeError that any of the above methods raise.
+      clear_error = true;
       only_pyobjects = false;
       only_pyobjects = false;
 
 
     } else if (TypeManager::is_bool(type)) {
     } else if (TypeManager::is_bool(type)) {