summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--abdl/_vm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/abdl/_vm.py b/abdl/_vm.py
index 1de2e15..f8b8c80 100644
--- a/abdl/_vm.py
+++ b/abdl/_vm.py
@@ -289,7 +289,8 @@ def match_helper(ops, defs, tree):
                     res[h.name] = (h.key, h.value)
             yield res
             assert len(path) == 1 or isinstance(frame.current_op, End)
-            frame.prev()
+            if not frame.prev():
+                return
             in_key = True
         else:
             if in_key: