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).
This commit is contained in:
Fred Drake 2001-09-27 16:28:42 +00:00
parent 30bff63958
commit 5a28bfbbc7
1 changed files with 1 additions and 1 deletions

View File

@ -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