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

Co-authored-by: max99x <mshawabkeh@jamandtea.studio>
This commit is contained in:
Max Shawabkehandmax99x authored and GitHub committed 2024-09-01 21:56:33 -07:00
1 parent 47f20da223
commit 6def9b018c
1 file changed
+2
+2
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