

@classmethod
def from_reply(cls, request, reply):
    errtype = reply.body.get('type', cls.__name__)
    subcls = getattr(cls, errtype)
    return subcls(request, reply.body.get('message', ''))

dataset/ETHPy150Open deliveryhero/lymph/lymph/exceptions.py RemoteError.from_reply/original