Skip to content

Commit

Permalink
adds skip_sanity_checks to trace_expr trace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom O'Hara committed Sep 13, 2024
1 parent 875ade6 commit 13401f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mezcla/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ def trace_expr(level, *values, **kwargs):
f"Warning: Likely problem resolving expression text (try reworking trace_expr call at {filename}:{line_number})")
value_spec = format_value(repr(value) if use_repr else value,
max_len=max_len)
trace(level, f"{expression}={value_spec}{delim}", no_eol=no_eol)
# note: using skip_sanity_checks, because kwargs gives false positive on brace check
trace(level, f"{expression}={value_spec}{delim}", no_eol=no_eol, skip_sanity_checks=True)
except:
trace_fmtd(ALWAYS, "Exception tracing values in trace_expr: {exc}",
exc=sys.exc_info())
Expand Down

0 comments on commit 13401f8

Please sign in to comment.