Skip to content

Commit 315d560

Browse files
committed
Fixed critical errors
1 parent e200236 commit 315d560

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
/.ruff_cache/
7+
/mcp/
68

79
# C extensions
810
*.so

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: black
2929
exclude: ^(tests/|test/|scripts/|script/)
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.15.0
31+
rev: v0.15.1
3232
hooks:
3333
- id: ruff
3434
types_or: [ python, pyi, jupyter ]

compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ services:
1919
max-size: "10m"
2020
max-file: "3"
2121
restart: always
22+
2223
environment:
24+
- "PYTHONUNBUFFERED=1"
2325
- "HOST=0.0.0.0"
2426
- "PORT=8017"
2527
- "TRANSPORT=streamable-http"
@@ -58,7 +60,9 @@ services:
5860
restart: always
5961
env_file:
6062
- .env
63+
6164
environment:
65+
- "PYTHONUNBUFFERED=1"
6266
- "HOST=0.0.0.0"
6367
- "PORT=9017"
6468
- "MCP_URL=http://repository-manager-mcp:8017/mcp"

repository_manager/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def convert_dependencies(cls, v):
4242
if isinstance(parsed, list):
4343
return parsed
4444
return [parsed]
45-
except Exception:
45+
except Exception as e:
46+
print(f"Unable to retrieve toolset: {e}")
4647
pass
4748
return [v]
4849

0 commit comments

Comments
 (0)