fix: swallow RuntimeError from unbound MemoryScope in reset

This commit is contained in:
Greyson LaLonde
2026-05-21 01:02:47 +08:00
parent 0991f7994a
commit f385b91a63

View File

@@ -27,7 +27,7 @@ def _reset_flow_memory(flow: Flow[Any]) -> None:
mem.reset()
elif hasattr(mem, "_memory") and mem._memory is not None:
mem._memory.reset()
except (FileNotFoundError, OSError):
except (FileNotFoundError, OSError, RuntimeError):
pass