def ve2no(f, *args):
        try:
            return f(*args)
        except ValueError:
            return -1
Convert ValueError result to -1
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/SortedList.py/ve2no