Skip to content

Commit

Permalink
fix: before request hook might not be executed (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyakaxd authored Dec 30, 2024
1 parent 1715f42 commit 99301d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def before_request():


def after_request():
for db in frappe.local.insights_db_connections.values():
for db in getattr(frappe.local, 'insights_db_connections', {}).values():
catch_error(db.disconnect)


Expand Down

0 comments on commit 99301d0

Please sign in to comment.