Skip to content

Commit a13f770

Browse files
Update claude_code_api/api/projects.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 7928fcf commit a13f770

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

claude_code_api/api/projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ async def create_project(
7272
# Create project directory
7373
if project_request.path:
7474
# Validate path
75+
try:
76+
project_path = validate_path(project_request.path, settings.project_root)
7577
try:
7678
project_path = validate_path(project_request.path, settings.project_root)
7779
except HTTPException:
78-
# Re-raise with meaningful error if needed or let it bubble up
7980
raise
8081

8182
os.makedirs(project_path, exist_ok=True)

0 commit comments

Comments
 (0)