From 3b21d74c36ab2987bfb9561a3531a9f170d3f066 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 12 Oct 2008 17:47:35 +0100 Subject: [PATCH] Missing wrapper in error handling --- pybindgen/cppclass.py | 2 +- pybindgen/cppmethod.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index ca50dd1..3ff3fdd 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -1696,7 +1696,7 @@ static PyObject*\n%s(%s *self) if self.has_copy_constructor: try: - copy_wrapper_name = utils.call_with_error_handling(self._generate_copy_method, (code_sink,), {}, None) + copy_wrapper_name = utils.call_with_error_handling(self._generate_copy_method, (code_sink,), {}, self) except utils.SkipWrapper: pass else: diff --git a/pybindgen/cppmethod.py b/pybindgen/cppmethod.py index c9c1c78..100d76b 100644 --- a/pybindgen/cppmethod.py +++ b/pybindgen/cppmethod.py @@ -552,6 +552,7 @@ class CppFunctionAsConstructor(CppConstructor): @type parameters: list of L{Parameter} """ + self.stack_where_defined = traceback.extract_stack() if unblock_threads is None: unblock_threads = settings.unblock_threads