def get_message_by_id(id):
    try:
        return dbsession.query(MOTD).filter(MOTD.id == id).one()
    except sqlalchemy.orm.exc.NoResultFound:
        return None
dataset/ETHPy150Open sjuxax/raggregate/raggregate/queries/motd.py/get_message_by_id/original