Fix EOFError crash when dialog subprocess exits without sending a result
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,10 @@ class TestItemDialogBase(TestItem):
|
|||||||
result = None
|
result = None
|
||||||
while p.is_alive() and not self._is_stopped:
|
while p.is_alive() and not self._is_stopped:
|
||||||
if parent_conn.poll(0.5):
|
if parent_conn.poll(0.5):
|
||||||
result = parent_conn.recv()
|
try:
|
||||||
|
result = parent_conn.recv()
|
||||||
|
except EOFError:
|
||||||
|
pass
|
||||||
break
|
break
|
||||||
self._cleanup_process(p)
|
self._cleanup_process(p)
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user