Skip to content

Commit

Permalink
update with f string
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Dec 20, 2024
1 parent f4e44b5 commit 3bbd5b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/tools/path/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,9 @@ def version_from_path(product: PRODUCT_TYPE, path: str) -> int:
"""
if not isinstance(path, str):
raise ValueError(
f"Provided path '{path}' is not valid string. "
"Check if the {product} is installed in default location. "
"If not use ``save-ansys-path`` to save the path."
f"Provided path '{path}' is not valid string."
f"Check if the {product} is installed in default location."
f"If not use ``save-ansys-path`` to save the path."
)
if product == "mechanical":
return _mechanical_version_from_path(path)
Expand Down

0 comments on commit 3bbd5b6

Please sign in to comment.