You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Resolve UnboundLocalError and remove absl-py dependency
- Fixes an `UnboundLocalError` for `latest_overall_review_activity_dt`
by ensuring it and related timestamp-tracking variables are initialized
at the beginning of the `main()` function scope before potential use.
- Removes the `absl-py` dependency from the script:
- Deletes the `absl` import and `logging.set_verbosity()` call.
- All `logging.info()` calls (previously used for API call details)
have been removed to reduce verbosity.
- `logging.error()` calls have been replaced with direct writes to
`sys.stderr`, prefixed with "Error:".
This simplifies dependencies and resolves the runtime error, while ensuring
important error messages are still reported.
logging.error(f"Error listing pull request reviews (page {params.get('page', 'N/A')}, params: {params}) for PR {pull_number} in {owner}/{repo}: {e}")
168
+
sys.stderr.write(f"Error: Failed to list pull request reviews (page {params.get('page', 'N/A')}, params: {params}) for PR {pull_number} in {owner}/{repo}: {e}\n")
0 commit comments