You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sigstore-python needs some exception refactoring anyways, and we could probably do a better job with the overall refactor by batching any handling here into those changes.
In that light, I'll just document the current sigstore._internal.tuf.TrustUpdater situation here:
constructors may raise
OSError on file read/write errors
TrustUpdater.get_*() methods may raise
OSError on file read/write errors
python-tuf DownloadError when we fail to download something from remote (metadata or target file)
python-tuf RepositoryError when the metadata is not valid -- repository is in a state that means we can't continue
parsing errors in TrustUpdater._get() code: metadata was valid TUF metadata but does not contain what we expected
Some of these we might not want to handle (like OSError) but e.g. DownloadError could be a fairly common occurrence with network hiccups and such?
The text was updated successfully, but these errors were encountered:
#351 is going to add sigstore._internal.tuf module. It does not handle errors consistently at the moment.
@woodruffw on error handling:
In that light, I'll just document the current
sigstore._internal.tuf.TrustUpdater
situation here:OSError
on file read/write errorsTrustUpdater.get_*()
methods may raiseOSError
on file read/write errorsDownloadError
when we fail to download something from remote (metadata or target file)RepositoryError
when the metadata is not valid -- repository is in a state that means we can't continueTrustUpdater._get()
code: metadata was valid TUF metadata but does not contain what we expectedSome of these we might not want to handle (like OSError) but e.g. DownloadError could be a fairly common occurrence with network hiccups and such?
The text was updated successfully, but these errors were encountered: