Skip to content

Commit 237541f

Browse files
committed
fix: fix bug
1 parent 5a0e205 commit 237541f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/knowledgebase/knowledgebase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def add(
131131
# Case6: Unsupported data type
132132
raise TypeError(f"Unsupported data type: {type(data)}")
133133

134-
if isinstance(data, list):
134+
if not isinstance(data, list):
135135
raise TypeError(
136-
f"Unsupported data type: {type(data)}, Only viking support file_path and file bytes"
136+
f"Unsupported data type: {type(data)}. Only viking support file_path and file bytes"
137137
)
138138
# not viking
139139
return self._adapter.add(data=data, index=index, **kwargs)

0 commit comments

Comments
 (0)