Commit 76fa16c
committed
Fix: Resolve UnboundLocalError for processed_comments_count
- Ensures `processed_comments_count` is initialized to 0 at the
beginning of the `main()` function scope, alongside other tracking
variables like `latest_overall_review_activity_dt` and
`latest_line_comment_activity_dt`.
- This prevents an `UnboundLocalError` when the script attempts to print
the number of processed line comments in scenarios where the line
comment processing loop is skipped (e.g., if no line comments are fetched).
This commit finalizes fixes for variable initialization and scoping issues.1 parent 01eaf8a commit 76fa16c
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
| |||
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 482 | + | |
| 483 | + | |
481 | 484 | | |
482 | 485 | | |
483 | 486 | | |
| |||
0 commit comments