-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove custom error solutions for PathOutsideRoot exceptions
Simplify error handling across package managers by removing redundant custom error solutions. Leverage PathOutsideRoot exception, which provides a default solution. Replace custom exception raising with direct calls to join_within_root, ensuring consistent error handling and avoiding unnecessary exception type modifications. Note: This change does not apply to pydantic validators that validate paths inside models. Those have to raise ValueError. Signed-off-by: Michal Šoltis <[email protected]>
- Loading branch information
1 parent
a01e3f5
commit 7e5f9dc
Showing
4 changed files
with
9 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters