Skip to content

Commit 9e1abf9

Browse files
Alexander KozloviText-CI
authored andcommitted
Remove special catch for IOException
DEVSIX-5847 Autoported commit. Original commit hash: [c235ccf]
1 parent 3b8a0c7 commit 9e1abf9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

itext/itext.pdfocr.tesseract4/itext/pdfocr/tesseract4/TesseractHelper.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,8 @@ internal static void RunCommand(String execPath, IList<String> paramsList, Strin
356356
throw new PdfOcrTesseract4Exception(PdfOcrTesseract4ExceptionMessageConstant.TESSERACT_FAILED);
357357
}
358358
}
359-
catch (System.IO.IOException e) {
360-
// NOSONAR
361-
LOGGER.LogError(MessageFormatUtil.Format(Tesseract4LogMessageConstant.COMMAND_FAILED, e.Message));
362-
throw new PdfOcrTesseract4Exception(PdfOcrTesseract4ExceptionMessageConstant.TESSERACT_FAILED);
363-
}
364359
catch (Exception e) {
360+
// NOSONAR
365361
LOGGER.LogError(MessageFormatUtil.Format(Tesseract4LogMessageConstant.COMMAND_FAILED, e.Message));
366362
throw new PdfOcrTesseract4Exception(PdfOcrTesseract4ExceptionMessageConstant.TESSERACT_FAILED);
367363
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51dfc57d45da53fe69e41f6bcd04b675eea96f96
1+
c235ccf7ed8238c9f7a426e338b87d9c8a5d6f9e

0 commit comments

Comments
 (0)