From ec4fccb1da103a7cb27ab07324b5dfc71284807c Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Sat, 16 Aug 2025 00:33:59 +0300 Subject: [PATCH] viz: pass through RewriteNotReady (#11690) --- tinygrad/uop/ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinygrad/uop/ops.py b/tinygrad/uop/ops.py index 98467794a5..e3fa6e87ea 100644 --- a/tinygrad/uop/ops.py +++ b/tinygrad/uop/ops.py @@ -848,8 +848,8 @@ class TrackedPatternMatcher(PatternMatcher): continue match_stats[p][1] += 1 try: ret = match(uop, ctx) - except Exception: - if TRACK_MATCH_STATS >= 2 and active_rewrites: + except Exception as e: + if TRACK_MATCH_STATS >= 2 and active_rewrites and not isinstance(e, RewriteNotReady): active_rewrites[-1].matches.append((track_uop(uop), track_uop(UOp(Ops.NOOP, arg=str(sys.exc_info()[1]))), p.location)) raise if ret is not None and ret is not uop: