We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e704cf commit f6528dfCopy full SHA for f6528df
src/lithic/_base_client.py
@@ -768,6 +768,9 @@ def __init__(self, **kwargs: Any) -> None:
768
769
class SyncHttpxClientWrapper(DefaultHttpxClient):
770
def __del__(self) -> None:
771
+ if self.is_closed:
772
+ return
773
+
774
try:
775
self.close()
776
except Exception:
@@ -1349,6 +1352,9 @@ def __init__(self, **kwargs: Any) -> None:
1349
1352
1350
1353
class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1351
1354
1355
1356
1357
1358
1359
# TODO(someday): support non asyncio runtimes here
1360
asyncio.get_running_loop().create_task(self.aclose())
0 commit comments