🐛 Fix Bug

This commit is contained in:
洛水居室 2022-12-25 20:01:18 +08:00
parent 7f93dbf5eb
commit b47ee6e5dd
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -37,7 +37,7 @@ async def update_metadata_from_ambr(overwrite: bool = True):
@contextmanager
async def stream_request(method, url) -> Iterator[Response]:
with client.stream(method=method, url=url) as response:
async with client.stream(method=method, url=url) as response:
yield response