Permalink
Browse files

Distinguish response parsing failures from unexpected exceptions.

  • Loading branch information...
luccioman committed Jul 16, 2017
1 parent 8100c03 commit 11a7f923d49dfc2a964d96db90b308067a579255
Showing with 2 additions and 0 deletions.
  1. +2 −0 source/net/yacy/crawler/retrieval/Response.java
@@ -862,6 +862,8 @@ public EventOrigin processCase(final String mySeedHash) {
if (supportError != null) throw new Parser.Failure("no parser support:" + supportError, url());
try {
return TextParser.parseSource(url(), this.responseHeader == null ? null : this.responseHeader.getContentType(), this.responseHeader == null ? StandardCharsets.UTF_8.name() : this.responseHeader.getCharacterEncoding(), new VocabularyScraper(), this.request.timezoneOffset(), this.request.depth(), this.content);
} catch(Parser.Failure e) {
throw e;
} catch (final Exception e) {
return null;
}

0 comments on commit 11a7f92

Please sign in to comment.