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:
parent
9f56ed03b8
commit
0978335d3b
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,9 @@ impl ImageDownloader {
|
|||
let mut image_urls = Vec::new();
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue