From b9828428ccc8123a4c513d9f23937408d72d3422 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 30 Sep 2023 13:37:10 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20web=20search=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/gplugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/gplugin.py b/util/gplugin.py index 75298caa4..d693be5c2 100644 --- a/util/gplugin.py +++ b/util/gplugin.py @@ -7,6 +7,7 @@ from util.func_call import ( FuncCallJsonFormatError, FuncNotFoundError ) +import traceback def tidy_text(text: str) -> str: return text.strip().replace("\n", "").replace(" ", "").replace("\r", "") @@ -80,6 +81,7 @@ def web_keyword_search_via_bing(keyword) -> str: ret = f"{str(res)}" return str(ret) except Exception as e: + print(traceback.format_exc()) print(f"bing fetch err: {str(e)}") _cnt += 1 time.sleep(1)