def get_attribute_by_id(attr_id, **kwargs):
    """
        Get a specific attribute by its ID.
    """

    try:
        attr_i = db.DBSession.query(Attr).filter(Attr.id==attr_id).one()
        return attr_i
    except NoResultFound:
        return None