We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The batch_get() function return 'NoneType' object is not iterable ERROR
PynamoDB/pynamodb/models.py
Line 382 in 43a303b
Line 1026 in 43a303b
Line 376 in 43a303b
Update
for batch_item in page or []:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
OBJECTIVE
The batch_get() function return 'NoneType' object is not iterable ERROR
PynamoDB/pynamodb/models.py
Line 382 in 43a303b
RCA
def _batch_get_page(cls, keys_to_get, consistent_read, attributes_to_get, settings: OperationSettings):
returns NONE, and assign NONE to
page, unprocessed_keys = cls._batch_get_page(
which ultimately fails to iterate on NONE. Results to raising 'NoneType' object is not iterable
PynamoDB/pynamodb/models.py
Line 1026 in 43a303b
PynamoDB/pynamodb/models.py
Line 376 in 43a303b
SOLUTION
Update
PynamoDB/pynamodb/models.py
Line 382 in 43a303b
to
for batch_item in page or []:
The text was updated successfully, but these errors were encountered: