Commit a3b89bf
committed
fix(set-workspace): wrap override persistence to keep 500 as JSON (CodeRabbit on PR #22)
validate_workspace_path() failures were already returning structured
JSON, but set_workspace_path_override(canonical) was outside the try
block — a persistence failure would have surfaced as Flask's HTML 500
page instead of {"error": "..."}. Wraps the call in its own try/except
so the response shape stays structured for any consumer parsing JSON.1 parent a63297f commit a3b89bf
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
0 commit comments