1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

[f] ignore url harvest error

This commit is contained in:
Jan Lukas Gernert 2025-03-28 17:18:03 +01:00
parent 9f56ed03b8
commit 0978335d3b

View file

@ -219,7 +219,9 @@ impl ImageDownloader {
let mut image_urls = Vec::new(); let mut image_urls = Vec::new();
for node in node_vec { for node in node_vec {
image_urls.push(Self::harvest_image_urls_from_node(node)?); if let Ok(url) = Self::harvest_image_urls_from_node(node) {
image_urls.push(url);
}
} }
Ok(image_urls) Ok(image_urls)