Skip to content

Commit cd15b76

Browse files
authored
Merge pull request #4 from ansys-internal/fli/close_file_handle
always close file handle before disposing it
2 parents 7d758a3 + 0000cb5 commit cd15b76

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
66

77
[project]
88
name = "ansys-workbench-core"
9-
version = "0.1.11"
9+
version = "0.1.12"
1010
description = "A python wrapper for Ansys Workbench"
1111
readme = "README.md"
1212
requires-python = ">=3.7,<4.0"

src/ansys/workbench/core/workbench_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def set_log_file(self, log_file):
6565
def reset_log_file(self):
6666
if self.__log_file_handler is None:
6767
return
68+
self.__log_file_handler.close()
6869
self._logger.removeHandler(self.__log_file_handler)
6970
self.__log_file_handler = None
7071

0 commit comments

Comments
 (0)