diff --git a/superset/views/base.py b/superset/views/base.py index 624c1e2fa1965..3a45faf4bc195 100644 --- a/superset/views/base.py +++ b/superset/views/base.py @@ -335,10 +335,10 @@ def render_app_template(self) -> FlaskResponse: def get_environment_tag() -> dict[str, Any]: # Whether flask is in debug mode (--debug) - debug = appbuilder.app.config.get("DEBUG") + debug = appbuilder.app.config["DEBUG"] # Getting the configuration option for ENVIRONMENT_TAG_CONFIG - env_tag_config = appbuilder.app.config.get("ENVIRONMENT_TAG_CONFIG") + env_tag_config = appbuilder.app.config["ENVIRONMENT_TAG_CONFIG"] # These are the predefined templates define in the config env_tag_templates = env_tag_config.get("values")