Skip to content

Commit bf34c37

Browse files
committed
2 parents 392dee4 + 29215f1 commit bf34c37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

filexdb/collection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def find(self, query=None, limit=None) -> List[Document]:
145145
:param query: Condition to search Document
146146
:return: List of Document
147147
"""
148+
if limit is not None and type(limit) == type((1,)):
149+
raise TypeError('Limit should be a tuple')
150+
151+
if query is not None and type(query) == type({}):
152+
raise TypeError('Limit should be a JOSN Object')
153+
148154
# Default result
149155
_result = []
150156

0 commit comments

Comments
 (0)