diff --git a/python/copilot/client.py b/python/copilot/client.py index 3693378b..522a2f2b 100644 --- a/python/copilot/client.py +++ b/python/copilot/client.py @@ -855,7 +855,7 @@ async def read_port(): if not line: raise RuntimeError("CLI process exited before announcing port") - line_str = line.decode() + line_str = line.decode() if isinstance(line, bytes) else line match = re.search(r"listening on port (\d+)", line_str, re.IGNORECASE) if match: self._actual_port = int(match.group(1))