except Exception as err:
print("{} not read!".format(self.location))
print(str(err))
data = dict()
if skip_faces:
After Change
def load(self):
Override parent loader to handle skip existing on extract
data = dict()
if not self.is_extract:
data = super().load()
return data
skip_existing = bool(hasattr(self.args, "skip_existing")
and self.args.skip_existing)
skip_faces = bool(hasattr(self.args, "skip_faces")
and self.args.skip_faces)
if not skip_existing and not skip_faces:
return data
if not self.have_alignments_file and (skip_existing or skip_faces):
print("Skip Existing/Skip Faces selected, but no alignments file "
"found!")
return data
try:
with open(self.file, self.serializer.roptions) as align:
data = self.serializer.unmarshal(align.read())
except IOError as err:
print("Error: {} not read: {}".format(self.file, err.strerror))
exit(1)
if skip_faces:
// Remove items from algnments that have no faces so they will
// be re-detected