Fix test_file_as_directory.

This commit is contained in:
AI Christianson 2025-01-09 15:04:21 -05:00
parent d01d2a4865
commit 5ffedb6941
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def is_new_project(directory: str) -> bool:
if not path.exists():
raise DirectoryNotFoundError(f"Directory does not exist: {directory}")
if not path.is_dir():
raise ProjectStateError(f"Path is not a directory: {directory}")
raise DirectoryNotFoundError(f"Path is not a directory: {directory}")
# Get all files/dirs in the directory, excluding contents of .git
allowed_items: Set[str] = {'.git', '.gitignore'}