Skip to content

fix: document suppressed client cleanup errors#3436

Open
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3428
Open

fix: document suppressed client cleanup errors#3436
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3428

Conversation

@nightcityblade

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Replace empty except Exception: pass handlers in the sync and async HTTP client wrapper destructors with explicit comments and return statements. This keeps destructor cleanup failures suppressed intentionally while making the behavior clear.

Fixes #3428

Additional context & links

Tests run:

  • ruff check src/openai/_base_client.py
  • ruff format --check src/openai/_base_client.py
  • git diff --check
  • pytest tests/test_client.py::TestOpenAI::test_parse_retry_after_header tests/test_client.py::TestAsyncOpenAI::test_parse_retry_after_header (32 passed)

@nightcityblade nightcityblade requested a review from a team as a code owner June 24, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty exception handler in _base_client.py

1 participant