Don't hard-fail the distro validation script when a download fails (#40914)

* Don't hard-fail the distro validation script when a download fails * Improve error

Blue committed Jun 25, 2026 at 16:22 UTC 9c8821651512f4d25516935d792a4ac91b5cc19f
1 file changed +5 -1
distributions/validate-modern.py
+5 -1
@@ -520,7 +520,11 @@ def read_url(url: dict, elf_magic):
520 tar_format = MAGIC.from_buffer(e)
521
522 file.seek(0, 0)
523 - read_tar(url, file, elf_magic)
523 +
524 + try:
525 + read_tar(url, file, elf_magic)
526 + except Exception as e:
527 + error(url, f"Failed to read tar from URL: {address}: {e}")
528
529
530 expected_sha = url['Sha256']() if 'Sha256' in url else None