-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
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
why can't we catch/suppress ConditionalCheckFailedException? #1076
Comments
The only counter-point I can offer is that, unless we break backward compatibility, we'd need to have:
BTW, to make it a bit shorter right now, you can opt to use the |
What do you say? can this be implemented? |
I've submitted this PR - #1202 |
It seems quite unpythonic to force users to write such constructs when dealing with the oh-so-useful conditional operations in DynamoDM:
PynamoDB already issues it own exceptions - why not perform this
if
and raise aConditionalCheckFailed
? why perpetuate the bad API for boto3 (in this regard) into this otherwise very pythonic library?Make this work:
The text was updated successfully, but these errors were encountered: