From c532656b3bba916a5df8cbdcf306b822ef94a871 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 23 Jul 2024 22:38:29 +0200 Subject: [PATCH] fix: where is the client --- comet/api/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/api/stream.py b/comet/api/stream.py index 7c27d8b..0d62ccb 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -398,7 +398,7 @@ def __init__(self): self.response = None async def stream_content(self, headers: dict): - async with client.stream( + async with self.client.stream( "GET", download_link, headers=headers ) as self.response: async for chunk in self.response.aiter_raw():