mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [ocr] catch OSError on MP4 files
This commit is contained in:
parent
31b519cc17
commit
50ff7529d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue