mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
034f35bcb9
commit
1516924e99
4 files changed
+42
-10
No files matched your search
@@ -108,8 +108,12 @@ async def _opencode_server(profile: dict[str, Any], workspace: str):
|
||||
|
||||
async def _drain_stderr(proc: asyncio.subprocess.Process) -> None:
|
||||
assert proc.stderr is not None
|
||||
while await proc.stderr.readline():
|
||||
pass
|
||||
while True:
|
||||
try:
|
||||
if not await proc.stderr.readline():
|
||||
break
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
|
||||
def _headers(profile: dict[str, Any]) -> dict[str, str]:
|
||||
|
||||
Reference in new issue
Block a user