Replace unreadable captures instead of reusing them

This commit is contained in:
0xMarcio committed 2026-10-22 21:54:31 +02:00
1 parent 418a349d88
commit ddae41b7c9
2 files changed
+19

No files matched your search

+4
View File
@@ -383,6 +383,10 @@ def verify_snapshot(snap: dict, original: str, expected_blobs=(), repo_id=None,
return False
snap['verified_at'] = now()
return True
except ArchiveError as exc:
if str(exc) in {'response-too-large', 'unsupported-response-encoding', 'invalid-compressed-response'}:
return False
raise
except error.HTTPError as exc:
status = exc.code
retry = exc.headers.get('Retry-After', '')