Skip to content

Commit 7acb46c

Browse files
committed
empty result handling
1 parent 4d8c1cc commit 7acb46c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async_cassandra/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def get_result(self, timeout: Optional[float] = None) -> "AsyncResultSet":
109109
self._future.set_exception(self._early_error)
110110
elif self._early_result:
111111
self._future.set_result(self._early_result)
112-
elif not self.response_future.has_more_pages and self.rows:
112+
elif not self.response_future.has_more_pages and self.rows is not None:
113113
self._future.set_result(AsyncResultSet(list(self.rows)))
114114

115115
# Use query timeout if no explicit timeout provided

0 commit comments

Comments
 (0)