Skip to content

Commit af32b0b

Browse files
committed
Fix ruff error
1 parent c9138c6 commit af32b0b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/SECURITY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ Security updates will be released as patch versions (e.g., 0.1.1 → 0.1.2) and
5050
* Keep dependencies up to date
5151

5252
Thank you for helping keep DSPy Code secure! 🔒
53-

dspy_code/commands/slash_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,6 @@ def cmd_mcp_tools(self, args: list):
13571357
error_parts.append(f"\nCause: {e.__cause__}")
13581358
show_error_message("\n".join(error_parts))
13591359
# Print traceback for debugging
1360-
import traceback
13611360
logger.debug("Error listing MCP tools", exc_info=True)
13621361

13631362
async def _mcp_tools_async(self, server_name: str | None):
@@ -1378,6 +1377,7 @@ async def _mcp_tools_async(self, server_name: str | None):
13781377
except Exception as e:
13791378
# Wrap other connection errors
13801379
from ..mcp.exceptions import MCPConnectionError as MCPConnErr
1380+
13811381
raise MCPConnErr(
13821382
f"Failed to connect to '{server_name}': {e}",
13831383
server_name=server_name,

0 commit comments

Comments
 (0)