def on_new_contact(self, sender, message):
        for k in["new_contact_id", "author_id"]:
            if message not in k:
                raise KeyError("Missing message parameter '{}'".format(k))

        author = Persona.query.get(message["author_id"])
        recipient = Persona.query.get(message["new_contact_id"])

        session = create_session()

        if recipient._stub is True:
            self.logger.info("Requesting profile of new contact {}".format(recipient))
            self.request_object("Persona", message["new_contact_id"], author, recipient, session)

        session.commit()
dataset/ETHPy150Open ciex/souma/synapse/__init__.py/Synapse.on_new_contact/swapped operands of `not in`