From 7f4ef9ae4e77d629f6cd0f4e2a9f9448d8bdcc2a Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 27 Mar 2011 16:17:55 +0100 Subject: [PATCH] Be less verbose with error importing wrapper registries from other modules --- pybindgen/wrapper_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/wrapper_registry.py b/pybindgen/wrapper_registry.py index b99995a..820d863 100644 --- a/pybindgen/wrapper_registry.py +++ b/pybindgen/wrapper_registry.py @@ -93,7 +93,7 @@ class StdMapWrapperRegistry(WrapperRegistry): % (module_pyobj_var, self.map_name)) code_block.write_code("if (_cobj == NULL) {\n" " _%(MAP)s = NULL;\n" - " PyErr_Print();\n" + " PyErr_Clear();\n" "} else {\n" " _%(MAP)s = reinterpret_cast< std::map *> (PyCObject_AsVoidPtr (_cobj));\n" " Py_DECREF(_cobj);\n"