def get_setting_value(key, default=None):
    try:
        return current_app.config.get(key, default)
    except __HOLE__ as e:
        logger.warning('current_app is inaccessible: %s' % e)

    try:
        app = create_app_min()
        db.init_app(app)
        with app.app_context():
            return app.config.get(key, default)
    except:
        return default
dataset/ETHPy150Open rochacbruno/quokka/quokka/utils/settings.py/get_setting_value