Unverified Commit 6def9b01 authored by Max Shawabkeh's avatar Max Shawabkeh Committed by GitHub
Browse files

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


Co-authored-by: default avatarmax99x <mshawabkeh@jamandtea.studio>
parent 47f20da2
...@@ -855,6 +855,8 @@ class ProgramState: ...@@ -855,6 +855,8 @@ class ProgramState:
return self.stream_executor.get_meta_info(name) return self.stream_executor.get_meta_info(name)
def __iadd__(self, other): def __iadd__(self, other):
if other is None:
raise ValueError("Tried to append None to state.")
self.stream_executor.submit(other) self.stream_executor.submit(other)
return self return self
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment