]> git.dolda2000.com Git - wrw.git/commitdiff
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 1dedbe6c666c718ecfa0e7340761c365e3d4d159..f0326cba02e7062561cbca46f6f5d021e73fe941 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):