Commit a0bbe9e8 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Account for failed extractor

parent 2ff27466
...@@ -83,8 +83,9 @@ class Wrapper (bob.bio.base.extractor.Extractor): ...@@ -83,8 +83,9 @@ class Wrapper (bob.bio.base.extractor.Extractor):
for index, frame, quality in self.frame_selector(frames): for index, frame, quality in self.frame_selector(frames):
# extract features # extract features
extracted = self.extractor(frame) extracted = self.extractor(frame)
# add features to new frame container if extracted is not None:
fc.add(index, extracted, quality) # add features to new frame container
fc.add(index, extracted, quality)
return fc return fc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment