Skip to content

Commit 563dce3

Browse files
koubaaMohamed Koubaapyansys-ci-bot
authored
fix: use the version number if the release name is not found (#1191)
Co-authored-by: Mohamed Koubaa <koubaa@github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent c495487 commit 563dce3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/changelog.d/1191.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use the version number if the release name is not found

src/ansys/mechanical/core/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _cli_impl(
176176
profile.update_environment(env)
177177

178178
if not DRY_RUN:
179-
version_name = atp.SUPPORTED_ANSYS_VERSIONS[version]
179+
version_name = atp.SUPPORTED_ANSYS_VERSIONS.get(version, version)
180180
if graphical:
181181
mode = "Graphical"
182182
else:

0 commit comments

Comments
 (0)