Skip to content

Commit

Permalink
fix: Warning for multiple version (#942)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
dipinknair and pyansys-ci-bot authored Oct 14, 2024
1 parent 675971e commit 3b5b5cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.d/942.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning for multiple version
2 changes: 1 addition & 1 deletion src/ansys/mechanical/core/embedding/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _get_latest_default_version() -> int:
latest_version = max(versions_found)

if len(awp_roots) > 1:
raise Warning(
warnings.warn(
f"Multiple versions of Mechanical found! Using latest version {latest_version} ..."
)

Expand Down

0 comments on commit 3b5b5cf

Please sign in to comment.