Commit e2c090f
committed
fix: email digest silent failures — exit non-zero on error + fallback to latest entries
Problems:
1. notify.py and announce.py returned False on failure but never called
sys.exit(1), so GitHub Actions marked failed runs as successful.
2. notify.py silently skipped sending when no opportunities were added
in the last 7 days, even if the sheet had older entries. Now falls
back to the latest entries in the sheet.
3. run.py did not propagate the return value from notify, so a failed
email send never surfaced as a non-zero exit code.
Changes:
- notify.py: add fetch_latest_from_tab() fallback; sys.exit(1) on failure
- run.py: return notify result; sys.exit(1) if notify fails
- announce.py: sys.exit(1) on send failure1 parent ab9fe42 commit e2c090f
3 files changed
Lines changed: 52 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
345 | 349 | | |
346 | 350 | | |
347 | 351 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
253 | 284 | | |
254 | 285 | | |
255 | 286 | | |
| |||
515 | 546 | | |
516 | 547 | | |
517 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
518 | 557 | | |
519 | | - | |
| 558 | + | |
520 | 559 | | |
521 | 560 | | |
522 | | - | |
| 561 | + | |
523 | 562 | | |
524 | 563 | | |
525 | 564 | | |
| |||
542 | 581 | | |
543 | 582 | | |
544 | 583 | | |
545 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
546 | 587 | | |
547 | 588 | | |
548 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments