Skip to content

Commit

Permalink
Ignore not found on ACS queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Aug 25, 2015
1 parent 4e5f361 commit 4b82119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/sf/jabref/logic/fetcher/ACS.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Optional<URL> findFullText(BibtexEntry entry) throws IOException {
if(doi.isPresent()) {
String source = String.format(SOURCE, doi.get().getDOI());
// Retrieve PDF link
Document html = Jsoup.connect(source).get();
Document html = Jsoup.connect(source).ignoreHttpErrors(true).get();
Element link = html.select(".pdf-high-res a").first();

if(link != null) {
Expand Down

0 comments on commit 4b82119

Please sign in to comment.