diff --git a/src/api/icons.rs b/src/api/icons.rs index fb4b57ac..4e0b6791 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -567,11 +567,11 @@ async fn download_icon(domain: &str) -> Result<(Bytes, Option<&str>), Error> { // Make sure all icons are checked before returning error let res = match get_page_with_referer(&icon.href, &icon_result.referer).await { Ok(r) => r, - Err(e) if icons.peek().is_none() => return Err(e.into()), - Err(e) if CustomHttpClientError::downcast_ref(&e).is_some() => return Err(e.into()), // If blacklisted stop immediately instead of checking the rest of the icons. see explanation and actual handling inside get_icon() + Err(e) if icons.peek().is_none() => return Err(e), + Err(e) if CustomHttpClientError::downcast_ref(&e).is_some() => return Err(e), // If blacklisted stop immediately instead of checking the rest of the icons. see explanation and actual handling inside get_icon() Err(e) => { warn!("Unable to download icon: {e:?}"); - + // Continue to next icon continue; }