From 139f68af4f331943d441cad9f0ab7b020ef90cd8 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Thu, 4 Jan 2024 00:38:31 +0100 Subject: Improve code style --- g4f/Provider/bing/conversation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'g4f/Provider/bing/conversation.py') diff --git a/g4f/Provider/bing/conversation.py b/g4f/Provider/bing/conversation.py index 8b33853c..ef45cd82 100644 --- a/g4f/Provider/bing/conversation.py +++ b/g4f/Provider/bing/conversation.py @@ -35,9 +35,9 @@ async def delete_conversation(session: ClientSession, conversation: Conversation "source": "cib", "optionsSets": ["autosave"] } - async with session.post(url, json=json, proxy=proxy) as response: - try: + try: + async with session.post(url, json=json, proxy=proxy) as response: response = await response.json() return response["result"]["value"] == "Success" - except: - return False + except: + return False \ No newline at end of file -- cgit v1.2.3