              frame_id = item[2] + item[1]
  
              if frame_id not in self.alignments_data or self.alignments_data[frame_id] <= item[3]:
                  yield item[0] + item[1]
              
          print("Done")
  
      def output_results(self):
          """ Output the results in the requested format """
          self.items_discovered = len(self.items_output)
          if self.items_discovered == 0:
 
</s> remove             if frame_id not in self.alignments_data or self.alignments_data[frame_id] <= item[3]:
 </s> add             if (frame_id not in self.alignments_data
                    or self.alignments_data[frame_id] <= item[3]): </s> remove         if hasattr(arguments, "faces_dir"):
 </s> add         if hasattr(arguments, "faces_dir") and arguments.faces_dir: </s> remove         elif hasattr(arguments, "frames_dir"):
 </s> add         elif hasattr(arguments, "frames_dir") and arguments.frames_dir: </s> remove         elif self.type == "faces" and self.job != "multi-faces" and self.job != "leftover-faces":
            print("WARNING: The selected folder is not valid. Only folder set "
                  "with '-fc' is supported for 'multi-faces' and 'leftover-faces'")
 </s> add         elif self.type == "faces" and self.job not in ("multi-faces",
                                                       "leftover-faces"):
            print("WARNING: The selected folder is not valid. "
                  "Only folder set with '-fc' is supported for "
                  "'multi-faces' and 'leftover-faces'") </s> remove         elif self.args.job in("missing-alignments", "missing-frames", "leftover-faces",
                              "multi-faces", "no-faces"):
 </s> add         elif self.args.job in("missing-alignments", "missing-frames",
                              "multi-faces", "leftover-faces",
                              "no-faces"):
              frame_id = item[2] + item[1]
  
              if frame_id not in self.alignments_data or self.alignments_data[frame_id] <= item[3]:
                  yield item[0] + item[1]


  
      def output_results(self):
          """ Output the results in the requested format """
          self.items_discovered = len(self.items_output)
          if self.items_discovered == 0:
keep keep keep keep replace replace keep keep keep keep keep
 Alignments Tool - Fix nonetype bug + linting (#484)

* Fix folder nonetype bug and linting 
tools/alignments.py