fix: log of null values

This commit is contained in:
CroiseurAurora
2023-03-29 13:46:56 +08:00
committed by GitHub
parent ad99c5909c
commit 127983688f

View File

@@ -55,7 +55,7 @@ class BingModel(Model):
answer = asyncio.run(task)
except Exception as e:
bot.pop_last_conversation()
log.exception(answer)
log.exception(e)
return f"AI生成内容被微软内容过滤器拦截,已删除最后一次提问的记忆,请尝试使用其他文字描述问题,若AI依然无法正常回复,请使用{clear_memory_commands[0]}命令清除全部记忆"
# 最新一条回复
try: