Skip to content

Commit

Permalink
fix: block format attributes (#22028) (#22029)
Browse files Browse the repository at this point in the history
(cherry picked from commit ce1355d)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Aug 12, 2023
1 parent dc363bb commit d146982
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/utils/safe_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ def _getattr(object, name, default=None):
# Traceback Attributes
"tb_frame",
"tb_next",
# Format Attributes
"format",
"format_map",
}

if isinstance(name, str) and (name in UNSAFE_ATTRIBUTES):
Expand Down

0 comments on commit d146982

Please sign in to comment.