def METHOD_NAME(self, session, indicator_attr):
    try:
        indicator = session.query(Indicator).filter_by(name=indicator_attr['name']).first()
        if indicator:
            indicator.fromDict(indicator_attr)
        else:
            logger.info('Adding new indicator %s' % indicator_attr['name'])
            indicator = Indicator(**indicator_attr)
            session.add(indicator)
        session.commit()
    except:
        logger.exception("Failed to add indicator with values %s" % indicator_attr)
        return False
    return True