Skip to content

Commit ae5e72e

Browse files
committed
skip on zip failure
1 parent 71fc627 commit ae5e72e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/github.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,13 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
281281
while let Some(res) = buffered.next().await {
282282
let Some(data) = res else { continue };
283283

284-
let mut za = ZipArchive::new(std::io::Cursor::new(data))?;
284+
let mut za = match ZipArchive::new(std::io::Cursor::new(data)) {
285+
Ok(za) => za,
286+
Err(err) => {
287+
eprintln!("failed to read zip archive: {}", err);
288+
continue;
289+
}
290+
};
285291
for i in 0..za.len() {
286292
let mut zf = za.by_index(i)?;
287293

0 commit comments

Comments
 (0)