Skip to content

Commit a9854d3

Browse files
author
Nathan Lee
committed
Added logfile close after protected_run finish
1 parent 4fcf81d commit a9854d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyrunner/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.2.4'
1+
__version__ = '4.2.5'

pyrunner/worker/abstract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def protected_run(self):
103103
self.logger.error(traceback.format_exc())
104104
self.retcode = 904
105105

106+
if sys.stdout: sys.stdout.close()
107+
if sys.stderr: sys.stderr.close()
106108
self.logger.close()
107109

108110
return

0 commit comments

Comments
 (0)