catch ValueError("I/O operation on closed file.") if frontend crashes (#4150)
This commit is contained in:
parent
8ec3cf6157
commit
1aed39a848
@ -394,9 +394,14 @@ class AppHarness:
|
|||||||
|
|
||||||
def consume_frontend_output():
|
def consume_frontend_output():
|
||||||
while True:
|
while True:
|
||||||
line = (
|
try:
|
||||||
self.frontend_process.stdout.readline() # pyright: ignore [reportOptionalMemberAccess]
|
line = (
|
||||||
)
|
self.frontend_process.stdout.readline() # pyright: ignore [reportOptionalMemberAccess]
|
||||||
|
)
|
||||||
|
# catch I/O operation on closed file.
|
||||||
|
except ValueError as e:
|
||||||
|
print(e)
|
||||||
|
break
|
||||||
if not line:
|
if not line:
|
||||||
break
|
break
|
||||||
print(line)
|
print(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user