fix: 添加report_exception中缺失的a参数 (#1720)
在report_exception函数的定义中,参数a未包含默认值,因此应提供相应的值传入。
This commit is contained in:
parent
f0e15bd710
commit
ae4407135d
@ -466,7 +466,7 @@ def PDF翻译中文并重新编译PDF(txt, llm_kwargs, plugin_kwargs, chatbot, h
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
except:
|
except:
|
||||||
report_exception(chatbot, history, b=f"发现重复上传,但是无法找到相关文件")
|
report_exception(chatbot, history, a=f"解析项目: {txt}", b=f"发现重复上传,但是无法找到相关文件")
|
||||||
yield from update_ui(chatbot=chatbot, history=history)
|
yield from update_ui(chatbot=chatbot, history=history)
|
||||||
|
|
||||||
chatbot.append([f"没有相关文件", '尝试重新翻译PDF...'])
|
chatbot.append([f"没有相关文件", '尝试重新翻译PDF...'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user