def default_configure(host=None):
    """Configure BlueOx based on defaults

    Accepts a connection string override in the form `localhost:3514`. Respects
    environment variable BLUEOX_HOST
    """
    host = ports.default_collect_host(host)
    hostname, port = host.split(':')

    try:
        int_port = int(port)
    except __HOLE__:
        raise Error("Invalid value for port")

    configure(hostname, int_port)
dataset/ETHPy150Open rhettg/BlueOx/blueox/__init__.py/default_configure