diff --git a/src/web/crate_details.rs b/src/web/crate_details.rs index 13ef493b2..53115f09a 100644 --- a/src/web/crate_details.rs +++ b/src/web/crate_details.rs @@ -241,12 +241,20 @@ impl CrateDetails { #[fn_error_context::context("fetching readme for {} {}", self.name, self.version)] fn fetch_readme(&self, storage: &Storage) -> anyhow::Result> { - let manifest = storage.fetch_source_file( + let manifest = match storage.fetch_source_file( &self.name, &self.version, "Cargo.toml", self.archive_storage, - )?; + ) { + Ok(manifest) => manifest, + Err(err) if err.is::() => { + return Ok(None); + } + Err(err) => { + return Err(err); + } + }; let manifest = String::from_utf8(manifest.content) .context("parsing Cargo.toml")? .parse::()