diff --git a/doc/changelog.d/942.fixed.md b/doc/changelog.d/942.fixed.md new file mode 100644 index 000000000..55468131f --- /dev/null +++ b/doc/changelog.d/942.fixed.md @@ -0,0 +1 @@ +Warning for multiple version \ No newline at end of file diff --git a/src/ansys/mechanical/core/embedding/initializer.py b/src/ansys/mechanical/core/embedding/initializer.py index 3d9f0b5bd..05c1ead6e 100644 --- a/src/ansys/mechanical/core/embedding/initializer.py +++ b/src/ansys/mechanical/core/embedding/initializer.py @@ -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} ..." )