def get_row(modelclass, rowid):
    try:
        dbrow = dbsession.query(modelclass).get(int(rowid))
        if dbrow in None:
            raise framework.HttpErrorNotFound("No such id.")
    except ValueError:
            raise framework.HttpErrorNotFound("Bad id value.")
    return dbrow
dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py/get_row/operator `is` -> `in`