From cb39326b407d365af6c610b7dbf97aa921af53ce Mon Sep 17 00:00:00 2001 From: mcDandy Date: Thu, 22 Oct 2026 10:50:32 +0200 Subject: [PATCH] Could not stop when not in loop boundary --- more_math/Parser/UnifiedMathVisitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index 2e43ba8..e857402 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -362,6 +362,7 @@ class UnifiedMathVisitor(MathExprVisitor): self._owned_tensors = weakref.WeakValueDictionary() def visit(self, tree): + throw_exception_if_processing_interrupted() if tree is None: return None