Skip to content

Commit

Permalink
fix: [ocr] catch OSError on MP4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Apr 30, 2024
1 parent 31b519c commit 50ff752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/modules/OcrExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def compute(self, message):
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
Expand Down

0 comments on commit 50ff752

Please sign in to comment.