summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt4
-rw-r--r--coverage/collector.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 572c5084..80312068 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -9,7 +9,11 @@ Version 3.5.4b1
HTML report would fail with a UnicodeDecodeError. This issue (`issue 193`_)
is now fixed.
+- Running coverage under a debugger is unlikely to work, but it shouldn't fail
+ with "TypeError: 'NoneType' object is not iterable". Fixes `issue 201`_.
+
.. _issue 193: https://bitbucket.org/ned/coveragepy/issue/193/unicodedecodeerror-on-htmlpy
+.. _issue 201: https://bitbucket.org/ned/coveragepy/issue/201/coverage-using-django-14-with-pydb-on
Version 3.5.3 --- 29 September 2012
diff --git a/coverage/collector.py b/coverage/collector.py
index 24c845ba..b8048e45 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -253,7 +253,7 @@ class Collector(object):
if fn0:
tracer0 = getattr(fn0, '__self__', None)
if tracer0:
- traces0 = getattr(tracer0, 'traces', None)
+ traces0 = getattr(tracer0, 'traces', [])
# Install the tracer on this thread.
fn = self._start_tracer()