summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-07-11 15:48:15 +0000
committerianb <devnull@localhost>2006-07-11 15:48:15 +0000
commit0c5642be0eb84851267d4e6d868b65ae3c54d053 (patch)
tree3f4b7e532e2b38515a2199d387389251b4cfe820 /paste/debug
parent0bfa6589c77986da06532f7be42ae97cbad71a38 (diff)
downloadpaste-0c5642be0eb84851267d4e6d868b65ae3c54d053.tar.gz
Avoid a weird upstream traceback in certain failure situations
Diffstat (limited to 'paste/debug')
-rw-r--r--paste/debug/prints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/debug/prints.py b/paste/debug/prints.py
index a4cc51b..c624669 100644
--- a/paste/debug/prints.py
+++ b/paste/debug/prints.py
@@ -88,8 +88,8 @@ class PrintDebugMiddleware(object):
if self.print_wsgi_errors:
listeners.append(environ['wsgi.errors'])
replacement_stdout = TeeFile(listeners)
+ threadedprint.register(replacement_stdout)
try:
- threadedprint.register(replacement_stdout)
status, headers, body = wsgilib.intercept_output(
environ, self.app)
if status is None: