This commit is contained in:
parent
c103f54035
commit
2ce25ac5ac
@ -114,7 +114,7 @@ class ProxyElem:
|
|||||||
async with self.local() as session:
|
async with self.local() as session:
|
||||||
resp = await session.post(proxy_server, json=request_data.dict())
|
resp = await session.post(proxy_server, json=request_data.dict())
|
||||||
response_data = cast(
|
response_data = cast(
|
||||||
ProxyResponse, ProxyResponse.parse_obj(await resp.text())
|
ProxyResponse, ProxyResponse.parse_obj(await resp.json())
|
||||||
)
|
)
|
||||||
except (aiohttp.ClientError, pydantic.ValidationError) as e:
|
except (aiohttp.ClientError, pydantic.ValidationError) as e:
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user