We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93fe7a commit f74d9d0Copy full SHA for f74d9d0
1 file changed
app/scenario_planning.py
@@ -34,7 +34,7 @@ def _resolve_workspace_path(candidate: Path) -> Path | None:
34
workspace_root = WORKSPACE_ROOT.resolve()
35
raw_path = os.path.normpath(str(candidate if candidate.is_absolute() else (workspace_root / candidate)))
36
if not raw_path.startswith(str(workspace_root)):
37
- raise Exception("not allowed")
+ raise PermissionError("not allowed")
38
resolved = Path(raw_path).resolve(strict=False)
39
resolved.relative_to(workspace_root)
40
return resolved
0 commit comments