<div dir="ltr">Thanks Terry<div><br></div><div>Yes both lines where in the traceback using tb_next I got what I needed.</div><div><br></div><div>Regards,</div><div><br></div><div>Néstor</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 1:36 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/30/2014 8:33 AM, Néstor Boscán wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm using Python 2.7 and I'm creating a class decorator that extract<br>
information from exceptions for logging purposes.<br>
<br>
Everytime an exception is raised from the original function and I<br>
extract the origin of the exception with sys.exc_info() I get a<br>
reference to the line in the decorator where the function is called, not<br>
the line of the original function where the exception was raised.<br>
</blockquote>
<br></div></div>
I expect that both lines should be in the traceback.  Post an example where you do not intercept the exception.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Terry Jan Reedy<br>
<br>
<br>
-- <br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>