Skip to content

Commit 841ee0e

Browse files
authored
Fixed warning message for ansys-mechanical (#326)
1 parent f6d17fd commit 841ee0e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee
1818
### Fixed
1919

2020
- Broken links (#316)
21+
- Fixed warning message for ansys-mechanical (#326)
2122

2223
## [0.9.3](https://github.com/ansys/pymechanical/releases/tag/v0.9.3) - July 27 2023
2324

src/ansys/mechanical/core/run.py

+2
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def cli(
171171
if input_script:
172172
args.append("-script")
173173
args.append(input_script)
174+
175+
if (not graphical) and input_script and (version < 241):
174176
warnings.warn(
175177
"Please ensure ExtAPI.Application.Close() is at the end of your script. "
176178
"Without this command, Batch mode will not terminate.",

0 commit comments

Comments
 (0)