Update frame_source.py

This commit is contained in:
Refound 2025-02-01 15:25:46 +08:00 committed by GitHub
parent b6b204e025
commit 002f84f768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,7 @@ def source_extractor(t: Type[TS]):
async def image_fetch(url: str) -> Optional[bytes]:
async with httpx.AsyncClient(verify=False) as client:
async with httpx.AsyncClient() as client:
response = await client.get(url)
if response.status_code == 200:
image_data = response.content