Commit 9c7547f
velero: narrow replay_collector_blobs's except to JSONDecodeError
json.loads() on a str only ever raises JSONDecodeError for malformed
input; the broad except Exception also swallowed anything unexpected
(e.g. a TypeError or MemoryError) and re-labeled it as an
"Error loading json" ValueError, which would mislead whoever debugs
it. Catch the specific decode error so genuinely unexpected failures
propagate untouched.
Environment: Datadog workspace
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent a42f52a commit 9c7547f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments