def get_default(key):
    """Get a default value from the current app's configuration.

    Currently returns None when no app is in context:
    >>> get_default('NO_APP_IS_LOADED') is None
    True
    >>>
    """
    try:
        return current_app.config.get(key, None)
    except (__HOLE__, RuntimeError):
        # AttributeError or RuntimeError depending on upstream versions.
        # No app is in context, return None as documented.
        return None
dataset/ETHPy150Open willowtreeapps/tango-core/tango/filters.py/get_default