Fix merge with next

This commit is contained in:
Brandon Rising 2024-02-28 15:11:15 -05:00 committed by psychedelicious
parent e7afae0159
commit 01898d766f

View File

@ -273,7 +273,7 @@ async def scan_for_models(
scan_path: str = Query(description="Directory path to search for models", default=None),
) -> List[FoundModel]:
path = pathlib.Path(scan_path)
if not path.is_dir():
if not scan_path or not path.is_dir():
raise HTTPException(
status_code=400,
detail=f"The search path '{scan_path}' does not exist or is not directory",