code: def __send_exc_clear(self, log_if_exc_set=None):
          
          if not (log_if_exc_set is None or self.__send_exc is None):
              logger.info(log_if_exc_set)
          self.__send_exc_time = None
          self.__send_exc = None
docs: Clear send exception and time. If exception was previously was set, optionally log log_if_exc_set at INFO
          level.