From 13401f81f41d62c0dced68b997940e454e95d838 Mon Sep 17 00:00:00 2001 From: Tom O'Hara Date: Fri, 13 Sep 2024 14:20:19 -0500 Subject: [PATCH] adds skip_sanity_checks to trace_expr trace --- mezcla/debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mezcla/debug.py b/mezcla/debug.py index 9125ea0..5c603cf 100755 --- a/mezcla/debug.py +++ b/mezcla/debug.py @@ -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())