From 3bbd5b6e62c60fe843913ebcf85d6b63b967e2f1 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Fri, 20 Dec 2024 10:54:29 -0800 Subject: [PATCH] update with f string --- src/ansys/tools/path/path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/tools/path/path.py b/src/ansys/tools/path/path.py index c33b8e4..c615a67 100644 --- a/src/ansys/tools/path/path.py +++ b/src/ansys/tools/path/path.py @@ -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)