Fix hang when doing s += None. (#1297)

Co-authored-by: max99x <mshawabkeh@jamandtea.studio>
This commit is contained in:
Max Shawabkeh
2024-09-01 21:56:33 -07:00
committed by GitHub
parent 47f20da223
commit 6def9b018c

View File

@@ -855,6 +855,8 @@ class ProgramState:
return self.stream_executor.get_meta_info(name)
def __iadd__(self, other):
if other is None:
raise ValueError("Tried to append None to state.")
self.stream_executor.submit(other)
return self