diff --git a/src/storage/mod.rs b/src/storage/mod.rs index 503d7b7c5..f70e7f661 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -262,10 +262,15 @@ impl AsyncStorage { latest_build_id: Option, path: &str, ) -> Result { - Ok(self + match self .find_in_archive_index(archive_path, latest_build_id, path) - .await? - .is_some()) + .await + { + Ok(Some(_)) => Ok(true), + Ok(None) => Ok(false), + Err(err) if err.downcast_ref::().is_some() => Ok(false), + Err(err) => Err(err), + } } #[instrument]