      """ Read an image with cv2 and check that an image was actually loaded.
          Logs an error if the image returned is None. or an error has occured.
  
          Pass raise_error=True if error should be raised """
      logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
      logger.trace("Requested image: '%s'", filename)
      success = True
      image = None
      try:
          image = cv2.imread(filename)  # pylint: disable=no-member
 
</s> remove         image = cv2.imread(filename)  # pylint: disable=no-member
 </s> add         image = cv2.imread(filename)  # pylint:disable=no-member,c-extension-no-member </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name </s> remove     img = cv2.imencode(extension, image)[1]  # pylint: disable=no-member
 </s> add     img = cv2.imencode(extension, image)[1]  # pylint:disable=no-member,c-extension-no-member </s> remove         cv2.imdecode(img, cv2.IMREAD_UNCHANGED)).hexdigest()  # pylint: disable=no-member
 </s> add         cv2.imdecode(  # pylint:disable=no-member,c-extension-no-member
            img,
            cv2.IMREAD_UNCHANGED)).hexdigest()  # pylint:disable=no-member,c-extension-no-member </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
    logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      """ Read an image with cv2 and check that an image was actually loaded.
          Logs an error if the image returned is None. or an error has occured.
  
          Pass raise_error=True if error should be raised """
    logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.trace("Requested image: '%s'", filename)
      success = True
      image = None
      try:
          image = cv2.imread(filename)  # pylint: disable=no-member
keep keep keep keep replace keep keep keep keep keep
 FaceswapError Exception. Added to cli and utils 
lib/utils.py