Need to clear exception when type checking fails

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-10-06 16:07:41 +01:00
1 parent 259bb357f1
commit 9e2cf04cec
1 file changed
+1
+1
View File
@@ -1541,6 +1541,7 @@ typedef struct {
code_sink.writeln("return %s(&result);" % retval_converter)
code_sink.unindent()
code_sink.writeln("}")
code_sink.writeln("PyErr_Clear();")
code_sink.unindent()
code_sink.writeln("}")