diff --git a/src/flask_debugtoolbar/panels/profiler.py b/src/flask_debugtoolbar/panels/profiler.py index 749edce..6528241 100644 --- a/src/flask_debugtoolbar/panels/profiler.py +++ b/src/flask_debugtoolbar/panels/profiler.py @@ -36,6 +36,8 @@ def __init__( ) -> None: super().__init__(jinja_env, context=context) + self.dump_filename = None + if current_app.config.get("DEBUG_TB_PROFILER_ENABLED"): self.is_active = True self.dump_filename = current_app.config.get(