diff options
| author | ianb <devnull@localhost> | 2006-07-11 15:48:15 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-07-11 15:48:15 +0000 |
| commit | 0c5642be0eb84851267d4e6d868b65ae3c54d053 (patch) | |
| tree | 3f4b7e532e2b38515a2199d387389251b4cfe820 /paste/debug | |
| parent | 0bfa6589c77986da06532f7be42ae97cbad71a38 (diff) | |
| download | paste-0c5642be0eb84851267d4e6d868b65ae3c54d053.tar.gz | |
Avoid a weird upstream traceback in certain failure situations
Diffstat (limited to 'paste/debug')
| -rw-r--r-- | paste/debug/prints.py | 2 |
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: |
