Skip to content

fix: warning freq#1689

Merged
SAKURA-CAT merged 1 commit into
mainfrom
fix/warning-freq
Jun 29, 2026
Merged

fix: warning freq#1689
SAKURA-CAT merged 1 commit into
mainfrom
fix/warning-freq

Conversation

@Nexisato

Copy link
Copy Markdown
Collaborator

Description

  • Fix the console logging frequency

#1687

@Nexisato Nexisato self-assigned this Jun 22, 2026
@Nexisato Nexisato added the 🐛 bug Something isn't working label Jun 22, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread swanlab/sdk/internal/core_python/transport/sender.py
@Nexisato Nexisato requested a review from SAKURA-CAT June 22, 2026 07:12
@SAKURA-CAT SAKURA-CAT merged commit 88914e5 into main Jun 29, 2026
19 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/warning-freq branch June 29, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants