Skip to content

Commit cfe2d77

Browse files
committed
style(server.py): format if statement for better readability and maintainability
1 parent c54c9db commit cfe2d77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mcp_shell_server/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ async def run_tool(self, arguments: dict) -> Sequence[TextContent]:
100100

101101
# Add stderr if present and not a process group message
102102
stderr = result.get("stderr")
103-
if stderr and not stderr.startswith("bash: cannot set terminal process group"):
103+
if stderr and not stderr.startswith(
104+
"bash: cannot set terminal process group"
105+
):
104106
content.append(TextContent(type="text", text=stderr))
105107

106-
107108
except asyncio.TimeoutError as e:
108109
raise ValueError(f"Command timed out after {timeout} seconds") from e
109110

0 commit comments

Comments
 (0)