summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wsgitools/middlewares.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py
index ea61aca..ffb2e38 100644
--- a/wsgitools/middlewares.py
+++ b/wsgitools/middlewares.py
@@ -278,10 +278,10 @@ class TracebackMiddleware:
def __call__(self, environ, start_response):
"""wsgi interface"""
try:
- return self.app(environ, start_response)
- except:
- exc_info = sys.exc_info()
- data = cgitb.html(exc_info)
- start_response("200 OK", [("Content-type", "text/html"),
- ("Content-length", str(len(data)))])
+ return self.app(environ, start_response)
+ except:
+ exc_info = sys.exc_info()
+ data = cgitb.html(exc_info)
+ start_response("200 OK", [("Content-type", "text/html"),
+ ("Content-length", str(len(data)))])
return [data]