          self.output_message = ""
  
      def get_source_dir(self, arguments):
          """ Set the correct source dir """
          if hasattr(arguments, "faces_dir"):
              self.type = "faces"
              source_dir = arguments.faces_dir
          elif hasattr(arguments, "frames_dir"):
              self.type = "frames"
              source_dir = arguments.frames_dir
 
</s> remove         elif hasattr(arguments, "frames_dir"):
 </s> add         elif hasattr(arguments, "frames_dir") and arguments.frames_dir: </s> remove             
        print("Done")
 </s> add  </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         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"): </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'")
        if hasattr(arguments, "faces_dir") and arguments.faces_dir:
          self.output_message = ""
  
      def get_source_dir(self, arguments):
          """ Set the correct source dir """
        if hasattr(arguments, "faces_dir") and arguments.faces_dir:
              self.type = "faces"
              source_dir = arguments.faces_dir
          elif hasattr(arguments, "frames_dir"):
              self.type = "frames"
              source_dir = arguments.frames_dir
keep keep keep keep replace keep keep keep keep keep
 Alignments Tool - Fix nonetype bug + linting (#484)

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