1
0
forked from clan/clan-core

task_manager.py: fix index out of range bug

This commit is contained in:
DavHau 2023-11-13 20:21:51 +07:00
parent 14c4b99891
commit 2395119d21

View File

@ -71,10 +71,10 @@ class Command:
try:
for line in fd:
if fd == self.p.stderr:
self.log.debug(f"[{cmd[0]}] stderr: {line}")
self.log.debug(f"[{cmd}] stderr: {line}")
self.stderr.append(line)
else:
self.log.debug(f"[{cmd[0]}] stdout: {line}")
self.log.debug(f"[{cmd}] stdout: {line}")
self.stdout.append(line)
self._output.put(line)
except BlockingIOError: