openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

fix(client): log exceptions during client finalization in __del__

Open ZachDreamZ opened this issue 4 months ago • 0 comments

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).

ZachDreamZ avatar Jul 22 '26 17:07 ZachDreamZ