Skip to content

Commit

Permalink
fix: 添加report_exception中缺失的a参数 (#1720)
Browse files Browse the repository at this point in the history
在report_exception函数的定义中,参数a未包含默认值,因此应提供相应的值传入。
  • Loading branch information
Keycatowo authored Apr 18, 2024
1 parent f0e15bd commit ae44071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/Latex输出PDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...'])
Expand Down

0 comments on commit ae44071

Please sign in to comment.