瀏覽代碼

Fix/assistant none type (#2145)

tags/0.5.0
Yeuoly 1 年之前
父節點
當前提交
27828f44b9
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      api/core/file/message_file_parser.py

+ 3
- 2
api/core/file/message_file_parser.py 查看文件

@@ -128,8 +128,9 @@ class MessageFileParser:

# group by file type and convert file args or message files to FileObj
for file in files:
if file.belongs_to == FileBelongsTo.ASSISTANT.value:
continue
if isinstance(file, MessageFile):
if file.belongs_to == FileBelongsTo.ASSISTANT.value:
continue

file_obj = self._to_file_obj(file, file_upload_config)
if file_obj.type not in type_file_objs:

Loading…
取消
儲存