summaryrefslogtreecommitdiff
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2005-09-20 18:50:13 +0000
committerArmin Rigo <arigo@tunes.org>2005-09-20 18:50:13 +0000
commitf87902448753ece981b5df938c070320705e5dec (patch)
treec58850543110002296115b770dcf6eefa6b51e23 /Lib/profile.py
parent630db60a5533a3267e2cc07047498fad604e3c91 (diff)
downloadcpython-git-f87902448753ece981b5df938c070320705e5dec.tar.gz
test and fix for buggy handling of exceptions raised by C functions,
causing the profiler to crash on an AssertionError if the same Python function catches multiple exceptions from C functions.
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index 5a29bd6568..b6048aa0c3 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -368,7 +368,7 @@ class Profile:
"exception": trace_dispatch_exception,
"return": trace_dispatch_return,
"c_call": trace_dispatch_c_call,
- "c_exception": trace_dispatch_exception,
+ "c_exception": trace_dispatch_return, # the C function returned
"c_return": trace_dispatch_return,
}