summaryrefslogtreecommitdiff
path: root/coverage/collector.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/collector.py')
-rw-r--r--coverage/collector.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/coverage/collector.py b/coverage/collector.py
index 743a03e0..24c845ba 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -260,7 +260,12 @@ class Collector(object):
for args in traces0:
(frame, event, arg), lineno = args
- fn(frame, event, arg, lineno=lineno)
+ try:
+ fn(frame, event, arg, lineno=lineno)
+ except TypeError:
+ raise Exception(
+ "fullcoverage must be run with the C trace function."
+ )
# Install our installation tracer in threading, to jump start other
# threads.