From 17a95249cbd6a8ffb8ffc54e15561f58a176c17a Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 21 Jan 2021 19:08:50 +0100 Subject: [PATCH] Managed more exception in crawling. --- src/fr/devinsy/statoolinfos/crawl/Crawler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/crawl/Crawler.java b/src/fr/devinsy/statoolinfos/crawl/Crawler.java index 04959d4..060e2e4 100644 --- a/src/fr/devinsy/statoolinfos/crawl/Crawler.java +++ b/src/fr/devinsy/statoolinfos/crawl/Crawler.java @@ -122,7 +122,7 @@ public class Crawler logger.error("ERROR: subcrawl failed for [{}][{}]: {}", property.getPath(), property.getValue(), exception.getMessage()); exception.printStackTrace(); } - catch (java.net.ConnectException | FileNotFoundException exception) + catch (IOException exception) { logger.error("ERROR: subcrawl failed for [{}][{}]: {}", property.getPath(), property.getValue(), exception.getMessage()); exception.printStackTrace();