From: Fredrik Tolf Date: Sun, 5 Jan 2014 07:02:41 +0000 (+0100) Subject: Flush stderr after printing exception in the default error handler. X-Git-Url: http://www.dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=d1e3dec2221697e7f59be8808f7eb83ffa8ab85a Flush stderr after printing exception in the default error handler. --- 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):