openai-python
openai-python copied to clipboard
fix(client): log exceptions during client finalization in __del__
Summary
Addresses #3428 by adding debug logging for exceptions raised during client finalization in del.
Description
Previously, exceptions raised in \SyncHttpxClientWrapper.del\ and \AsyncHttpxClientWrapper.del\ were silently swallowed via \pass. Logging them with \log.debug(..., exc_info=True)\ provides diagnostic visibility during debugging without changing runtime error flow.
Authored by Carl Andrie Ellepure (@ZachDreamZ).