Skip to content

Commit

Permalink
Prevent LookupError when accessing debug_toolbars_var (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
macnewbold authored Apr 18, 2024
2 parents 7012193 + b139c60 commit 48de4e4
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 @@ -196,7 +196,7 @@ def process_view(self, app, view_func, view_kwargs):

def process_response(self, response):
real_request = request._get_current_object()
if real_request not in self.debug_toolbars_var.get():
if real_request not in self.debug_toolbars_var.get({}):
return response

# Intercept http redirect codes and display an html page with a
Expand Down

0 comments on commit 48de4e4

Please sign in to comment.