summaryrefslogtreecommitdiffstats
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
parentUpdate BingCreateImages.py (diff)
downloadgpt4free-0.3.1.0.tar
gpt4free-0.3.1.0.tar.gz
gpt4free-0.3.1.0.tar.bz2
gpt4free-0.3.1.0.tar.lz
gpt4free-0.3.1.0.tar.xz
gpt4free-0.3.1.0.tar.zst
gpt4free-0.3.1.0.zip
-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]