summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2005-09-20 18:50:13 (GMT)
committerArmin Rigo <arigo@tunes.org>2005-09-20 18:50:13 (GMT)
commitf87902448753ece981b5df938c070320705e5dec (patch)
treec58850543110002296115b770dcf6eefa6b51e23 /Lib/profile.py
parent630db60a5533a3267e2cc07047498fad604e3c91 (diff)
downloadcpython-f87902448753ece981b5df938c070320705e5dec.zip
cpython-f87902448753ece981b5df938c070320705e5dec.tar.gz
cpython-f87902448753ece981b5df938c070320705e5dec.tar.bz2
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 5a29bd6..b6048aa 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,
}