Flush stderr after printing exception in the default error handler.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 5 Jan 2014 07:02:41 +0000 (08:02 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 5 Jan 2014 07:02:41 +0000 (08:02 +0100)
wrw/dispatch.py

index 1dedbe6..f0326cb 100644 (file)
@@ -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):