Before calling traceback.print_exc(), call sys.stdout.flush().  This makes
it much easier to see where things went wrong.
1 file changed