From 494fc50446b9be7a5260762362b15044cac66562 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Thu, 20 Jun 2024 15:29:30 +0800 Subject: [PATCH] fix missing aexit --- utils/tweet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/tweet.py b/utils/tweet.py index ff05800..755029d 100644 --- a/utils/tweet.py +++ b/utils/tweet.py @@ -273,6 +273,9 @@ class Telegram: async with TelegramTweet(self._httpx_client, self._url) as tweet: return tweet + async def __aexit__(self, exc_type, exc_val, exc_tb): + pass + @classmethod def init_client(cls) -> None: cls._httpx_client = create_client()