Skip to content

Commit

Permalink
Fix Exception catching
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Sep 29, 2024
1 parent 300b7b3 commit d4e933a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private void putElectronicLocation(BibEntry bibEntry, Element datafield) {
try {
LinkedFile linkedFile = new LinkedFile(URI.create(resource).toURL(), "PDF");
bibEntry.setField(StandardField.FILE, linkedFile.toString());
} catch (MalformedURLException e) {
} catch (MalformedURLException | IllegalArgumentException e) {
LOGGER.info("Malformed URL: {}", resource);
}
} else {
Expand Down

0 comments on commit d4e933a

Please sign in to comment.