              logger.warning("No display detected. GUI mode has been disabled.")
              if platform.system() == "Darwin":
                  logger.info("macOS users need to install XQuartz. "
                              "See https://support.apple.com/en-gb/HT201341")
              exit(1)
  
      def execute_script(self, arguments):
          """ Run the script for called command """
          is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
          log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
 
</s> remove             logger.warning("No display detected. GUI mode has been disabled.")
 </s> add  </s> remove             logger.warning(
 </s> add             logger.error( </s> remove             exit(1)
 </s> add             raise FaceswapError("TkInter not found") </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
            raise FaceswapError("No display detected. GUI mode has been disabled.")
              logger.warning("No display detected. GUI mode has been disabled.")
              if platform.system() == "Darwin":
                  logger.info("macOS users need to install XQuartz. "
                              "See https://support.apple.com/en-gb/HT201341")
            raise FaceswapError("No display detected. GUI mode has been disabled.")
  
      def execute_script(self, arguments):
          """ Run the script for called command """
          is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
          log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
keep keep keep keep replace keep keep keep keep keep
 FaceswapError Exception. Added to cli and utils 
lib/cli.py