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

if a file or directory cannot be found use FileNotFoundError

parent b2caebe8
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
......@@ -173,13 +173,13 @@ def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, Lis
toolchains for the release.
Raises:
- Exception: If the release directory does not exist. Run `create_dir_structure()`
- FileNotFoundError: If the release directory does not exist. Run `create_dir_structure()`
first.
"""
# Get the info for release
release_base_dir = script_dir / mpsd_release
if not os.path.exists(release_base_dir):
raise Exception(
raise FileNotFoundError(
"Release directory does not exist. Run create_dir_structure() first."
)
with os_chdir(release_base_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment