diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f62a81e8..9058f69c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee ### Fixed - Broken links (#316) +- Fixed warning message for ansys-mechanical (#326) ## [0.9.3](https://github.com/ansys/pymechanical/releases/tag/v0.9.3) - July 27 2023 diff --git a/src/ansys/mechanical/core/run.py b/src/ansys/mechanical/core/run.py index b46a05df7..05cf16e61 100644 --- a/src/ansys/mechanical/core/run.py +++ b/src/ansys/mechanical/core/run.py @@ -171,6 +171,8 @@ def cli( if input_script: args.append("-script") args.append(input_script) + + if (not graphical) and input_script and (version < 241): warnings.warn( "Please ensure ExtAPI.Application.Close() is at the end of your script. " "Without this command, Batch mode will not terminate.",