mirror of
https://github.com/0xMarcio/cve.git
synced 2026-10-27 16:51:03 +00:00
Replace unreadable captures instead of reusing them
This commit is contained in:
1 parent
418a349d88
commit
ddae41b7c9
2 files changed
+19
No files matched your search
@@ -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', '')
|
||||
|
||||
Reference in new issue
Block a user