Skip to content

Commit

Permalink
Handle cases when debug toolbar has not been installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Aymerich Gunern committed Jan 11, 2024
1 parent d4a8cc9 commit 765f221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask_debugtoolbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def process_view(self, app, view_func, view_kwargs):
"""
real_request = request._get_current_object()
try:
toolbar = self.debug_toolbars_var.get()[real_request]
toolbar = self.debug_toolbars_var.get({})[real_request]
except KeyError:
return view_func

Expand Down

0 comments on commit 765f221

Please sign in to comment.