Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise borgstore specific exceptions for expected errors #34

Closed
ThomasWaldmann opened this issue Sep 11, 2024 · 0 comments
Closed

raise borgstore specific exceptions for expected errors #34

ThomasWaldmann opened this issue Sep 11, 2024 · 0 comments
Assignees
Milestone

Comments

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Sep 11, 2024

E.g. if a url can't be parsed, it's currently a ValueError:

ValueError: Invalid Backend Storage URL: sftp://gateway/tmp/test

If it would be a more specific exception, borgbackup (or other code using borgstore) could catch these and not show a traceback.

See also borgbackup/borg#8373 .

@ThomasWaldmann ThomasWaldmann added this to the 0.0.3 milestone Sep 11, 2024
@ThomasWaldmann ThomasWaldmann self-assigned this Sep 11, 2024
ThomasWaldmann added a commit that referenced this issue Sep 11, 2024
store: raise BE specific exception, fixes #34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant