Force a flush of the file object prior to closing it when running tasks

This commit is contained in:
Matthew Jones
2014-08-13 15:39:42 -04:00
parent 1656a49623
commit dfb2200d8d

View File

@@ -404,6 +404,7 @@ class BaseTask(Task):
except OSError: except OSError:
pass pass
try: try:
stdout_handle.flush()
stdout_handle.close() stdout_handle.close()
except Exception: except Exception:
pass pass