From 50ff7529d28acfcabc9a9df7f3e9064480f01627 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 30 Apr 2024 10:17:04 +0200 Subject: [PATCH] fix: [ocr] catch OSError on MP4 files --- bin/modules/OcrExtractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/modules/OcrExtractor.py b/bin/modules/OcrExtractor.py index 03b03724..cc9ea8db 100755 --- a/bin/modules/OcrExtractor.py +++ b/bin/modules/OcrExtractor.py @@ -103,7 +103,7 @@ class OcrExtractor(AbstractModule): print(image.id, languages) try: texts = Ocrs.extract_text(path, languages) - except ValueError as e: + except (OSError, ValueError) as e: self.logger.warning(e) self.obj.add_tag('infoleak:confirmed="false-positive"') texts = None