import sys
sys.path.append("..")  # Adds higher directory to python modules path.

from agent import addPeer


# Todo: Timeout
def connectPeer(URL, PORT, who):
    """
    :return: error occurs-False- or not-True-.
    """
    try:
        addPeer(URL, PORT, req=who)

    except:
        return False

    return True

75b05cd59a476447405a0576187b02f6da5a06f4
<mask token>

<mask token>


def connectPeer(URL, PORT, who):
    """
    :return: error occurs-False- or not-True-.
    """
    try:
        addPeer(URL, PORT, req=who)
    except:
        return False
    return True

<mask token>
sys.path.append('..')
<mask token>


def connectPeer(URL, PORT, who):
    """
    :return: error occurs-False- or not-True-.
    """
    try:
        addPeer(URL, PORT, req=who)
    except:
        return False
    return True

import sys
sys.path.append('..')
from agent import addPeer


def connectPeer(URL, PORT, who):
    """
    :return: error occurs-False- or not-True-.
    """
    try:
        addPeer(URL, PORT, req=who)
    except:
        return False
    return True

import sys
sys.path.append("..")  # Adds higher directory to python modules path.

from agent import addPeer


# Todo: Timeout
def connectPeer(URL, PORT, who):
    """
    :return: error occurs-False- or not-True-.
    """
    try:
        addPeer(URL, PORT, req=who)

    except:
        return False

    return True
