mirror of https://github.com/CIRCL/AIL-framework
fix: [ocr] catch OSError on MP4 files
parent
31b519cc17
commit
50ff7529d2
|
@ -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 New Issue