def _parse_id(id):
    try:
        return int(id)
    except __HOLE__:
        raise BadRequestException(
            "'%s' value has an invalid format. It must be in integer "
            "format." % id)
dataset/ETHPy150Open openstack/stacktach/stacktach/stacky_server.py/_parse_id