Skip to content

Commit

Permalink
Ignore errors when scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jul 16, 2023
1 parent 5b9d3d8 commit 2460477
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/jasper/component/WebScraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ public void scrape(String url) {
if (isBlank(url)) return;
// TODO: Switch to async tag processor using "_scrape" tag
if (exists(url)) return;
this.fetch(url);
try {
this.fetch(url);
} catch (Exception e) {}
}

@Timed(value = "jasper.webscrape")
Expand Down

0 comments on commit 2460477

Please sign in to comment.