From cc42a70768ebef1d85df47392b3868c36661bc8a Mon Sep 17 00:00:00 2001 From: yym68686 Date: Mon, 25 Nov 2024 18:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bug:=20Fix=20the=20bug=20in=20th?= =?UTF-8?q?e=20error=5Ftriggers=20condition=20judgment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 6b6a1be..d225949 100644 --- a/utils.py +++ b/utils.py @@ -454,7 +454,7 @@ async def error_handling_wrapper(generator, channel_id, engine, stream, error_tr if first_item_str.startswith("[DONE]"): logger.error(f"provider: {channel_id:<11} error_handling_wrapper [DONE]!") raise StopAsyncIteration - if all(x not in first_item_str for x in error_triggers): + if any(x in first_item_str for x in error_triggers): logger.error(f"provider: {channel_id:<11} error const string: %s", first_item_str) raise StopAsyncIteration try: