Skip to content
Snippets Groups Projects
Commit 71d6ca8e authored by Hans Fangohr's avatar Hans Fangohr
Browse files

ValueError is often used if a (user-provided) value is incorrect

parent 82c64e52
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!10if a file or directory cannot be found use FileNotFoundError
Pipeline #367979 failed
......@@ -254,7 +254,7 @@ def install_environment(
cache when installing toolchains. Defaults to False.
Raises:
Exception: If a requested toolchain is not available in the specified release.
ValueError: If a requested toolchain is not available in the specified release.
Returns:
None
......@@ -292,7 +292,7 @@ def install_environment(
for toolchain in toolchains:
if toolchain not in available_toolchains:
raise Exception(
raise ValueError(
f"Toolchain '{toolchain}' is not available in release {mpsd_release}."
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment