def raise_404(response):
    data = response.json()
    if data['error'] in "NotFoundException":
        raise NotFound(data['message'])
    else:
        response.raise_for_status()
dataset/ETHPy150Open dave-tucker/hp-sdn-client/hpsdnclient/error.py/raise_404/swapped operands of `in`