summaryrefslogtreecommitdiff
path: root/coverage/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/debug.py')
-rw-r--r--coverage/debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/debug.py b/coverage/debug.py
index 823d2b2..4cf0f3e 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -48,7 +48,7 @@ class DebugControl(object):
if self.should('pid'):
msg = "pid %5d: %s" % (os.getpid(), msg)
self.output.write(msg+"\n")
- if self.should('callers'):
+ if callers and self.should('callers'):
dump_stack_frames(out=self.output)
self.output.flush()