borgbackup / borgstore

experimental storage backend
Other
7 stars 3 forks source link

raise borgstore specific exceptions for expected errors #34

Closed ThomasWaldmann closed 2 months ago

ThomasWaldmann commented 2 months ago

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 https://github.com/borgbackup/borg/issues/8373 .