@sessioned
    def get_event_by_message_id(self, message_id, session=None):
        try:
            e = session.query(models.Event). \
                filter(models.Event.message_id == message_id).one()
        except NoResultFound:
            raise NoSuchEventError(
                "No event found with message_id %s!" % message_id)
        return e.as_dict
dataset/ETHPy150Open openstack/stacktach-winchester/winchester/db/interface.py/DBInterface.get_event_by_message_id/original