Skip to content

Commit

Permalink
Update soft fail for t-filesToRdfChunked
Browse files Browse the repository at this point in the history
  • Loading branch information
skodapetr committed Feb 17, 2023
1 parent fac3294 commit d3e2399
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ protected Collection<Statement> processChunk(FilesContainer filesContainer)
buffer.clear();
for (FilesDataUnit.Entry entry : filesContainer.getFiles()) {
LOG.debug("Loading: {}", entry.getFileName());
loadEntry(entry);
try {
loadEntry(entry);
} catch (Throwable ex) {
if (configuration.isSkipOnFailure()) {
LOG.warn("Failed loading {}",
entry.getFileName(), ex);
continue;
}
throw new LpException("Failed loading file: {}",
entry.getFileName(), ex);
}
}
return buffer;
}
Expand Down

0 comments on commit d3e2399

Please sign in to comment.