From d1e3dec2221697e7f59be8808f7eb83ffa8ab85a Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 5 Jan 2014 08:02:41 +0100 Subject: [PATCH] Flush stderr after printing exception in the default error handler. --- wrw/dispatch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wrw/dispatch.py b/wrw/dispatch.py index 1dedbe6..f0326cb 100644 --- a/wrw/dispatch.py +++ b/wrw/dispatch.py @@ -19,6 +19,7 @@ def mangle(result): def defaulterror(req, excinfo): import resp traceback.print_exception(*excinfo) + sys.stderr.flush() raise resp.httperror(500) def wraphandler(handler, excinfo): -- 2.11.0