summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Bing.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-05-07 07:41:58 +0200
committerGitHub <noreply@github.com>2024-05-07 07:41:58 +0200
commitee7428e767073bba84f553dff2edce060a74bf9a (patch)
tree2f268e7a8fa9cc8ff42c4114f55bfc326a24eed3 /g4f/Provider/Bing.py
parentUpdate BingCreateImages.py (diff)
downloadgpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar.gz
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar.bz2
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar.lz
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar.xz
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.tar.zst
gpt4free-ee7428e767073bba84f553dff2edce060a74bf9a.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Bing.py2
1 files changed, 1 insertions, 1 deletions
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]