We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f33bb3 commit 9f4b981Copy full SHA for 9f4b981
1 file changed
fixprice_api/endpoints/general.py
@@ -26,9 +26,10 @@ async def download_image(
26
attempts=retry_attempts, start_timeout=3.0, max_timeout=timeout
27
)
28
29
+ px = self._parent.proxy if isinstance(self._parent.proxy, Proxy) else Proxy(self._parent.proxy)
30
async with RetryClient(retry_options=retry_options) as retry_client:
31
async with retry_client.get(
- url, raise_for_status=True, proxy=Proxy(self._parent.proxy).as_str()
32
+ url, raise_for_status=True, proxy=px.as_str()
33
) as resp:
34
body = await resp.read()
35
file = BytesIO(body)
0 commit comments