A model can specify custom AWS credentials in the Meta class (in lieu of "global"
AWS credentials from the environment). Previously those model-specific credentials
were not used from within new threads.
Expose transaction cancellation reasons in
:meth:~pynamodb.exceptions.TransactWriteError.cancellation_reasons and
:meth:~pynamodb.exceptions.TransactGetError.cancellation_reasons (#1144).
v5.3.5
Fix message of some exceptions derived from :class:~pynamodb.exceptions.PynamoDBException (#1113).
Make serialization :code:null_check=False propagate to maps inside lists (#1128).
v5.3.3
Fix :py:class:~pynamodb.pagination.PageIterator and :py:class:~pynamodb.pagination.ResultIterator
to allow recovery from an exception when retrieving the first item (#1101).
.. code-block:: python
results = MyModel.query('hash_key')
while True:
try:
item = next(results)
except StopIteration:
break
except pynamodb.exceptions.QueryError as ex:
if ex.cause_response_code == 'ThrottlingException':
time.sleep(1) # for illustration purposes only
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pynamodb from 5.2.3 to 5.4.1.
Release notes
Sourced from pynamodb's releases.
... (truncated)
Changelog
Sourced from pynamodb's changelog.
... (truncated)
Commits
a8900c4
Use model's AWS credentials in threadse59d9bb
Expose transaction cancellation reasons (#1156)c835789
Fix exception message (#1157)adc1577
5.x: propagate null_check to maps in lists (#1128)d2037b8
Improve first iteration logic (#1121)821a493
Do not package typing_tests (#1118)f6f1b4d
Upgrade to mypy 0.950 (#1116)b004829
add release note for 5.3.184d14ae
Connection: call describe_table as needed (#1114)c022adc
Do not call DescribeTable for models (#1095)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)