chore: raise from specific exceptions
This commit is contained in:
parent
284fd5c688
commit
f8f6fda794
6 changed files with 7 additions and 7 deletions
|
@ -49,7 +49,7 @@ def list_packages_files(
|
|||
path = path / DEFAULT_PACKAGES_FILENAME
|
||||
|
||||
if not path.is_file():
|
||||
raise Exception(f"{path} is not a file!")
|
||||
raise ValueError(f"{path} is not a file!")
|
||||
|
||||
yield path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue