def raise_500(response):
    data = response.json()
    if "IllegalStateException" in data['error']:
        raise OpenflowProtocolError()
    else:
        response.raise_for_status()
dataset/ETHPy150Open dave-tucker/hp-sdn-client/hpsdnclient/error.py/raise_500/original