Be less verbose with error importing wrapper registries from other modules

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2011-03-27 16:17:55 +01:00
1 parent 9e883068ad
commit 7f4ef9ae4e
1 file changed
+1 -1
+1 -1
View File
@@ -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<void*, PyObject*> *> (PyCObject_AsVoidPtr (_cobj));\n"
" Py_DECREF(_cobj);\n"