Skip to content

Commit

Permalink
修复gpt异常处理语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Aug 6, 2023
1 parent d32d6d6 commit 1a5c6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/gpt_model/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def chat(self, msg, sessionid):

# 捕获异常并打印堆栈跟踪信息
except Exception as error:
traceback.logging.info_exc()
logging.error(traceback.format_exc())
return str('异常: ' + str(error))


Expand Down

0 comments on commit 1a5c6a1

Please sign in to comment.