Skip to content

Commit b158e00

Browse files
refactor(ci): simplify stderr decode in watcher thread per code review
Agent-Logs-Url: https://github.com/codeSamuraii/pyfuse/sessions/3fc206b9-a7f6-45e5-9770-7a59c2f59f3c Co-authored-by: codeSamuraii <17270548+codeSamuraii@users.noreply.github.com>
1 parent 7b9f32d commit b158e00

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/integration/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ def worker_process(
137137
def _watch_stderr() -> None:
138138
assert proc.stderr is not None
139139
for raw_line in proc.stderr:
140-
try:
141-
line = raw_line.decode("utf-8", errors="replace")
142-
except Exception:
143-
line = repr(raw_line) + "\n"
140+
line = raw_line.decode("utf-8", errors="replace")
144141
sys.stderr.write(f"[worker] {line}")
145142
sys.stderr.flush()
146143
if "Listening for tasks" in line:

0 commit comments

Comments
 (0)