From: Niki Roo Date: Sun, 18 Mar 2018 11:16:26 +0000 (+0100) Subject: Do not exit when failing to download a typ X-Git-Url: http://git.nikiroo.be/?p=gofetch.git;a=commitdiff_plain;h=e570bb42dfb90f4c31429069ac7095514ff3ee2f;hp=136ab80122a17caa0720116d6d2552521239fbb3 Do not exit when failing to download a typ --- diff --git a/src/be/nikiroo/gofetch/Fetcher.java b/src/be/nikiroo/gofetch/Fetcher.java index 5f81eda..bd5a454 100644 --- a/src/be/nikiroo/gofetch/Fetcher.java +++ b/src/be/nikiroo/gofetch/Fetcher.java @@ -42,8 +42,8 @@ public class Fetcher { * the sub directory and (pre-)selector to use for the resources * (will have an impact on the files' content) * @param type - * the type of news to get (or the special keyword ALL to get all - * of the supported sources) + * the type of news to get (or NULL to get all of the supported + * sources) * @param maxStories * the maximum number of stories to show on the resume page * @param hostname @@ -81,7 +81,12 @@ public class Fetcher { BasicSupport support = BasicSupport.getSupport(type); if (type == this.type || this.type == null) { - list(support); + try { + list(support); + } catch (Exception e) { + new Exception("Failed to process support: " + type, e) + .printStackTrace(); + } } gopherBuilder.append(getLink(support.getDescription(),