Commit cbc7d0a
Fix season resolution crash and sanitize API exception leaks
- resolve_or_create_season now guards against non-dict season metadata
instead of raising AttributeError when a provider returns a malformed
payload (fixes the root cause behind #957)
- Sanitize the ~40 remaining "errors": str(e) sites in api/views.py that
leaked raw exception text to API clients, matching the pattern already
used for the episode watch/drop routes; exceptions are now logged
server-side via logger.exception instead
Fixes #957
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 42d2b71 commit cbc7d0a
4 files changed
Lines changed: 142 additions & 82 deletions
File tree
- src
- api
- tests
- app
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
| 936 | + | |
| 937 | + | |
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
| |||
0 commit comments