git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not exit when failing to download a typ
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
Fetcher.java
diff --git
a/src/be/nikiroo/gofetch/Fetcher.java
b/src/be/nikiroo/gofetch/Fetcher.java
index 5f81edabcb887cdb9e211c558331bab8a78339ec..bd5a4543fda92a92da61d665205fb5744364b217 100644
(file)
--- 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
* (<b>will</b> have an impact on the files' content)
* @param type
* the sub directory and (pre-)selector to use for the resources
* (<b>will</b> 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
* @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) {
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(),
}
gopherBuilder.append(getLink(support.getDescription(),