def get_local_ip(self):
    """ Gets the local IP of the current node.
     
    Returns: 
      The local IP
    """

    try:
      local_ip = self.__local_ip
    except __HOLE__:
      local_ip = None

    if local_ip is None:
      local_ip = os.environ.get("LOCAL_DB_IP")

      if local_ip is None:
        raise Exception("Env var LOCAL_DB_IP was not set.")
      else:
        self.__local_ip = local_ip

    return self.__local_ip
dataset/ETHPy150Open AppScale/appscale/AppDB/dbinterface_batch.py/AppDBInterface.get_local_ip