From ae4407135db8a8910755cf6895cf90037b651d34 Mon Sep 17 00:00:00 2001 From: owo <47293699+Keycatowo@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:27:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0report=5Fexception?= =?UTF-8?q?=E4=B8=AD=E7=BC=BA=E5=A4=B1=E7=9A=84a=E5=8F=82=E6=95=B0=20(#172?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在report_exception函数的定义中,参数a未包含默认值,因此应提供相应的值传入。 --- crazy_functions/Latex输出PDF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crazy_functions/Latex输出PDF.py b/crazy_functions/Latex输出PDF.py index 0471749..e356097 100644 --- a/crazy_functions/Latex输出PDF.py +++ b/crazy_functions/Latex输出PDF.py @@ -466,7 +466,7 @@ def PDF翻译中文并重新编译PDF(txt, llm_kwargs, plugin_kwargs, chatbot, h return True except: - report_exception(chatbot, history, b=f"发现重复上传,但是无法找到相关文件") + report_exception(chatbot, history, a=f"解析项目: {txt}", b=f"发现重复上传,但是无法找到相关文件") yield from update_ui(chatbot=chatbot, history=history) chatbot.append([f"没有相关文件", '尝试重新翻译PDF...'])