Skip to content

Commit c518c33

Browse files
committed
remove unreachable empty query check in MongoQuery.get_cursor()
EmptyResultSet is raised by SQLCompiler.check_query().
1 parent 43a3345 commit c518c33

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

django_mongodb/query.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ def get_cursor(self, count=False, limit=None, skip=None):
9797
9898
Use `limit` or `skip` to override those options of the query.
9999
"""
100-
if self.query.low_mark == self.query.high_mark:
101-
return []
102100
fields = {}
103101
for name, expr in self.columns or []:
104102
try:

0 commit comments

Comments
 (0)