Commit 5a28bfbb authored by Fred Drake's avatar Fred Drake

Change the sense of a test in how the profiler interprets exception events.

This should fix a bug in how time is allocated during exception propogation
(esp. in the presence of finally clauses).
parent 30bff639
......@@ -241,7 +241,7 @@ class Profile:
def trace_dispatch_exception(self, frame, t):
rt, rtt, rct, rfn, rframe, rcur = self.cur
if (not rframe is frame) and rcur:
if (rframe is frame) and rcur:
return self.trace_dispatch_return(rframe, t)
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment