Commit 4ef1463
committed
refactor: handle delete photo errors directly without exceptions
- Replaced exception raising in delete photo result handling with direct error handling
- Session errors during delete now trigger retry via needs_retry flag
- 500 errors return error code 1 (important for delete operations)
- Service unavailable returns error code 1
- Other API errors are logged but continue processing
- All tests pass, mypy strict mode passes1 parent 3906695 commit 4ef1463
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | | - | |
| 1482 | + | |
1483 | 1483 | | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
| 1484 | + | |
1487 | 1485 | | |
1488 | | - | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1489 | 1499 | | |
1490 | | - | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1491 | 1503 | | |
1492 | 1504 | | |
1493 | 1505 | | |
| |||
0 commit comments