Merge pull request #255 from paulfurley/return-iterator-if-table-doesnt-exist

find(): if table doesn't exist, return an iterator
This commit is contained in:
Friedrich Lindenberg 2018-05-29 21:34:15 +03:00 committed by GitHub
commit f04629825f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,7 +446,7 @@ class Table(object):
instead.
"""
if not self.exists:
return []
return iter([])
_limit = kwargs.pop('_limit', None)
_offset = kwargs.pop('_offset', 0)