Commit e6f13c3
Workspace quota: use string literal for 401 detail (lint fix)
The /workspace/quota route was raising HTTPException(detail=str(exc))
which the project's test_backend_http_exceptions_use_friendly_detail
static-analysis test flags as "leaky" — exc.repr() can leak internal
state if a future refactor changes the WorkspaceQuotaAuthRequired
type. Replace with a fixed string literal that matches the message
WorkspaceQuotaAuthRequired itself uses at both raise sites.
No behavior change for end users; the response detail text is
identical. Full backend test suite: 450 passed (was 449 + 1 failure).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c57d658 commit e6f13c3
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
495 | 504 | | |
496 | 505 | | |
497 | 506 | | |
| |||
0 commit comments