Skip to content

Commit f74d9d0

Browse files
committed
fix lint issue
1 parent c93fe7a commit f74d9d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/scenario_planning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _resolve_workspace_path(candidate: Path) -> Path | None:
3434
workspace_root = WORKSPACE_ROOT.resolve()
3535
raw_path = os.path.normpath(str(candidate if candidate.is_absolute() else (workspace_root / candidate)))
3636
if not raw_path.startswith(str(workspace_root)):
37-
raise Exception("not allowed")
37+
raise PermissionError("not allowed")
3838
resolved = Path(raw_path).resolve(strict=False)
3939
resolved.relative_to(workspace_root)
4040
return resolved

0 commit comments

Comments
 (0)