def check_config(self, conf_dict):
        redis_host = conf_dict.get('redis_host', 'localhost')
        redis_port = conf_dict.get('redis_port', 6379)
        redis_db = conf_dict.get('redis_db', 0)
        queue_key = conf_dict.get('queue_key', 'incoming')
        class_thresh = conf_dict.get('class_thresh', 0.5)
        timeslices = conf_dict.get('timeslices', [300])
        alert_time = conf_dict.get('alert_time', 1.0)
        archive_time = conf_dict.get('archive_time', 60)
        log_file = conf_dict.get('log_file', 'firetower-server.log')
        log_level = conf_dict.get('log_level', 1)
        imap_user = conf_dict.get('imap_user', '')
        imap_host = conf_dict.get('imap_host', '')
        class_order = conf_dict.get('class_order', '')

        return (redis_host, redis_port, redis_db, queue_key, alert_time,
                class_thresh, timeslices, archive_time, log_file, log_level,
                imap_user, imap_host, class_order)
Make sure we have expected keys with some value.
dataset/ETHPy150Open gmcquillan/firetower/firetower/config.py/Config.check_config