Unverified Commit 27828f44 authored by Yeuoly's avatar Yeuoly Committed by GitHub

Fix/assistant none type (#2145)

parent 9525ca08
...@@ -128,8 +128,9 @@ class MessageFileParser: ...@@ -128,8 +128,9 @@ class MessageFileParser:
# group by file type and convert file args or message files to FileObj # group by file type and convert file args or message files to FileObj
for file in files: for file in files:
if file.belongs_to == FileBelongsTo.ASSISTANT.value: if isinstance(file, MessageFile):
continue if file.belongs_to == FileBelongsTo.ASSISTANT.value:
continue
file_obj = self._to_file_obj(file, file_upload_config) file_obj = self._to_file_obj(file, file_upload_config)
if file_obj.type not in type_file_objs: if file_obj.type not in type_file_objs:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment