fix: warning freq#1689
Conversation
There was a problem hiding this comment.
Code Review
This pull request ensures that the upload progress tracker is only advanced upon successful record uploads. For 4xx client errors, the process now logs a warning and returns early without advancing the tracker, while 5xx and network errors are raised for upstream retries. Unit tests have been updated to reflect these changes. Feedback on this PR highlights a potential bug where e.response could be None during network-level failures, which would cause an AttributeError when checking e.response.status_code. A code suggestion has been provided to safely handle this case.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description
#1687