Closed gunyarakun closed 2 years ago
thank you for this pull request. looks good, the test failures are clearly unrelated. I'll try to figure out how to fix them.
To fix CircleCI, we have to fix the version of click
used in black
to 8.0.1
.
https://github.com/psf/black/issues/2964
merging this despite CI failing, since I've fixed CI in other branches/PRs.
@gunyarakun thank you again, released as 22.4
@ojii Thank you for your quick review and release!
Now
asyncio.TimeoutError
is handled in the client logic. Buthttpx
wrapper raiseshttpx.TimeoutException
. This pull request convert the exception and make the client be able to handle timeouts inhttpx
.ref.)
httpx
timeout exceptions https://github.com/encode/httpx/blob/master/httpx/_exceptions.py#L7-L11ref.) Custom HTTP Client Adaptor document https://github.com/HENNGE/aiodynamo/blob/2e6c4716a3ac9fe5669bbdcaa73e6bbe0f73cfbb/docs/advanced.rst