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

activate tracebacks for TAM exceptions #7839

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/borg/crypto/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ class TAMRequiredError(IntegrityError):
In the latter case, use "borg upgrade --tam --force '{}'" to re-authenticate the manifest.
""").strip()
traceback = False
traceback = True


class ArchiveTAMRequiredError(TAMRequiredError):
__doc__ = textwrap.dedent("""
Archive '{}' is unauthenticated, but it is required for this repository.
""").strip()
traceback = False
traceback = True


class TAMInvalid(IntegrityError):
__doc__ = IntegrityError.__doc__
traceback = False
traceback = True

def __init__(self):
# Error message becomes: "Data integrity error: Manifest authentication did not verify"
Expand All @@ -107,7 +107,7 @@ def __init__(self):

class ArchiveTAMInvalid(IntegrityError):
__doc__ = IntegrityError.__doc__
traceback = False
traceback = True

def __init__(self):
# Error message becomes: "Data integrity error: Archive authentication did not verify"
Expand All @@ -116,7 +116,7 @@ def __init__(self):

class TAMUnsupportedSuiteError(IntegrityError):
"""Could not verify manifest: Unsupported suite {!r}; a newer version is needed."""
traceback = False
traceback = True


class KeyBlobStorage:
Expand Down
Loading