Skip to content

Commit

Permalink
fix #1765: skip transcription if an ioerror happens creating temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Jul 12, 2023
1 parent 5c432bc commit 1bac920
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ protected void process(IItem evidence) throws Exception {
return;
}

try {
evidence.getTempFile();
} catch (IOException e) {
LOGGER.warn("Error creating temp file {} ({} bytes) {}", evidence.getPath(), evidence.getLength(), e.toString());
return;
}

TemporaryResources tmp = new TemporaryResources();
File tmpFile = getTempFileToTranscript(evidence, tmp);
if (tmpFile == null) {
Expand Down

0 comments on commit 1bac920

Please sign in to comment.