          max_ver = 1.13
          try:
              import tensorflow as tf
          except ImportError:
              logger.error("Tensorflow is a requirement but is not installed on your system.")
              exit(1)
          tf_ver = float(".".join(tf.__version__.split(".")[:2]))
          if tf_ver < min_ver:
              logger.error("The minimum supported Tensorflow is version %s but you have version "
                           "%s installed. Please upgrade Tensorflow.", min_ver, tf_ver)
              exit(1)
 
</s> remove             logger.error("The minimum supported Tensorflow is version %s but you have version "
                         "%s installed. Please upgrade Tensorflow.", min_ver, tf_ver)
            exit(1)
 </s> add             raise FaceswapError("The minimum supported Tensorflow is version {} but you have "
                                "version {} installed. Please upgrade Tensorflow.".format(
                                    min_ver, tf_ver)) </s> remove             logger.error("The maximumum supported Tensorflow is version %s but you have version "
                         "%s installed. Please downgrade Tensorflow.", max_ver, tf_ver)
            exit(1)
 </s> add             raise FaceswapError("The maximumum supported Tensorflow is version {} but you have "
                                "version {} installed. Please downgrade Tensorflow.".format(
                                    max_ver, tf_ver)) </s> remove             logger.warning(
 </s> add             logger.error( </s> remove             logger.warning("No display detected. GUI mode has been disabled.")
 </s> add  </s> remove         image = cv2.imread(filename)  # pylint: disable=no-member
 </s> add         image = cv2.imread(filename)  # pylint:disable=no-member,c-extension-no-member
            raise FaceswapError("Tensorflow is a requirement but is not installed on your system.")
          max_ver = 1.13
          try:
              import tensorflow as tf
          except ImportError:
            raise FaceswapError("Tensorflow is a requirement but is not installed on your system.")
            raise FaceswapError("Tensorflow is a requirement but is not installed on your system.")
          tf_ver = float(".".join(tf.__version__.split(".")[:2]))
          if tf_ver < min_ver:
              logger.error("The minimum supported Tensorflow is version %s but you have version "
                           "%s installed. Please upgrade Tensorflow.", min_ver, tf_ver)
              exit(1)
keep keep keep keep replace replace keep keep keep keep keep
 FaceswapError Exception. Added to cli and utils 
lib/cli.py