Skip to content

Commit 40f8645

Browse files
Fix class attribute dump_filename in ProfilerDebugPanel (#294)
We need `dump_filename` in `ProfilerDebugPanel` always initialised to avoid `AttributeError` Fix #286
1 parent 07f8515 commit 40f8645

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flask_debugtoolbar/panels/profiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def __init__(
3636
) -> None:
3737
super().__init__(jinja_env, context=context)
3838

39+
self.dump_filename = None
40+
3941
if current_app.config.get("DEBUG_TB_PROFILER_ENABLED"):
4042
self.is_active = True
4143
self.dump_filename = current_app.config.get(

0 commit comments

Comments
 (0)