          :class:`numpy.ndarray`
              The swapped face with the requested mask added to the Alpha channel
          """
          logger.trace("Getting mask. Image shape: %s", new_face.shape)
          mask_centering = detected_face.mask[self._args.mask_type].stored_centering
          crop_offset = (reference_face.pose.offset[self._centering] -
                         reference_face.pose.offset[mask_centering])
          mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, self._centering,
                                                         predicted_mask=predicted_mask)
          if new_face.shape[2] == 4:
 
</s> remove         if self._alignments.version == 1.0:
            logger.error("The alignments file format has been updated since the given alignments "
                         "file was generated. You need to update the file to proceed.")
            logger.error("To do this run the 'Alignments Tool' > 'Extract' Job.")
            sys.exit(1)
 </s> add         self._validate() </s> remove         if (self._args.mask_type not in ("none", "predicted") and
 </s> add         if (self._args.on_the_fly and
                self._args.mask_type not in ("none", "extended", "components")):
            logger.warning("You have selected an incompatible mask type ('%s') for On-The-Fly "
                           "conversion. Switching to 'extended'", self._args.mask_type)
            self._args.mask_type = "extended"

        if (not self._args.on_the_fly and
                self._args.mask_type not in ("none", "predicted") and </s> remove                     logger.trace("Convert error traceback:", exc_info=True)
 </s> add                     loglevel = logger.trace if log_once else logger.warning
                    loglevel("Convert error traceback:", exc_info=True)
                    log_once = True </s> remove         self._validate()
 </s> add 
        if self._args.mask_type != "none":
            mask_centering = detected_face.mask[self._args.mask_type].stored_centering
        else:
            mask_centering = "face"  # Unused but requires a valid value
          :class:`numpy.ndarray`
              The swapped face with the requested mask added to the Alpha channel
          """
          logger.trace("Getting mask. Image shape: %s", new_face.shape)
        if self._args.mask_type != "none":
            mask_centering = detected_face.mask[self._args.mask_type].stored_centering
        else:
            mask_centering = "face"  # Unused but requires a valid value
          crop_offset = (reference_face.pose.offset[self._centering] -
                         reference_face.pose.offset[mask_centering])
          mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, self._centering,
                                                         predicted_mask=predicted_mask)
          if new_face.shape[2] == 4:
keep keep keep keep replace keep keep keep keep keep
 bugfix: Convert - don't error if no mask is selected 
lib/convert.py