def prepare_request(self, request):
    try:
      fmsg = FastcastMessage(request)
    except:
      raise FastcastProtocolError()

    msg_body = json.loads(fmsg.message)

    if not msg_body in 'operation':
      raise MissingOperationError()

    operation = msg_body['operation']
    return (operation, fmsg)
dataset/ETHPy150Open orisi/orisi/src/oracle/oracle.py/Oracle.prepare_request/swapped operands of `in`