Skip to content

Commit ae44071

Browse files
authored
fix: 添加report_exception中缺失的a参数 (#1720)
在report_exception函数的定义中,参数a未包含默认值,因此应提供相应的值传入。
1 parent f0e15bd commit ae44071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crazy_functions/Latex输出PDF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def PDF翻译中文并重新编译PDF(txt, llm_kwargs, plugin_kwargs, chatbot, h
466466
return True
467467

468468
except:
469-
report_exception(chatbot, history, b=f"发现重复上传,但是无法找到相关文件")
469+
report_exception(chatbot, history, a=f"解析项目: {txt}", b=f"发现重复上传,但是无法找到相关文件")
470470
yield from update_ui(chatbot=chatbot, history=history)
471471

472472
chatbot.append([f"没有相关文件", '尝试重新翻译PDF...'])

0 commit comments

Comments
 (0)