浏览代码

Merge pull request #7839 from ThomasWaldmann/traceback-for-tam-exceptions-1.2

activate tracebacks for TAM exceptions
TW 1 年之前
父节点
当前提交
c9c495db0a
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/borg/crypto/key.py

+ 5 - 5
src/borg/crypto/key.py

@@ -86,19 +86,19 @@ class TAMRequiredError(IntegrityError):
 
 
     In the latter case, use "borg upgrade --tam --force '{}'" to re-authenticate the manifest.
     In the latter case, use "borg upgrade --tam --force '{}'" to re-authenticate the manifest.
     """).strip()
     """).strip()
-    traceback = False
+    traceback = True
 
 
 
 
 class ArchiveTAMRequiredError(TAMRequiredError):
 class ArchiveTAMRequiredError(TAMRequiredError):
     __doc__ = textwrap.dedent("""
     __doc__ = textwrap.dedent("""
     Archive '{}' is unauthenticated, but it is required for this repository.
     Archive '{}' is unauthenticated, but it is required for this repository.
     """).strip()
     """).strip()
-    traceback = False
+    traceback = True
 
 
 
 
 class TAMInvalid(IntegrityError):
 class TAMInvalid(IntegrityError):
     __doc__ = IntegrityError.__doc__
     __doc__ = IntegrityError.__doc__
-    traceback = False
+    traceback = True
 
 
     def __init__(self):
     def __init__(self):
         # Error message becomes: "Data integrity error: Manifest authentication did not verify"
         # Error message becomes: "Data integrity error: Manifest authentication did not verify"
@@ -107,7 +107,7 @@ class TAMInvalid(IntegrityError):
 
 
 class ArchiveTAMInvalid(IntegrityError):
 class ArchiveTAMInvalid(IntegrityError):
     __doc__ = IntegrityError.__doc__
     __doc__ = IntegrityError.__doc__
-    traceback = False
+    traceback = True
 
 
     def __init__(self):
     def __init__(self):
         # Error message becomes: "Data integrity error: Archive authentication did not verify"
         # Error message becomes: "Data integrity error: Archive authentication did not verify"
@@ -116,7 +116,7 @@ class ArchiveTAMInvalid(IntegrityError):
 
 
 class TAMUnsupportedSuiteError(IntegrityError):
 class TAMUnsupportedSuiteError(IntegrityError):
     """Could not verify manifest: Unsupported suite {!r}; a newer version is needed."""
     """Could not verify manifest: Unsupported suite {!r}; a newer version is needed."""
-    traceback = False
+    traceback = True
 
 
 
 
 class KeyBlobStorage:
 class KeyBlobStorage: