From ee7428e767073bba84f553dff2edce060a74bf9a Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Tue, 7 May 2024 07:41:58 +0200 Subject: Update Bing.py --- g4f/Provider/Bing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/Provider') diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py index 046c05c1..4056f9ff 100644 --- a/g4f/Provider/Bing.py +++ b/g4f/Provider/Bing.py @@ -468,7 +468,7 @@ async def stream_generate( continue try: response = json.loads(obj) - except json.JSONDecodeError: + except ValueError: continue if response and response.get('type') == 1 and response['arguments'][0].get('messages'): message = response['arguments'][0]['messages'][0] -- cgit v1.2.3