Skip to content
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

fix: Handling of missing entity in db.increase_counter and db.write_in_transaction #44

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

sveneberth
Copy link
Member

@sveneberth sveneberth commented Jan 15, 2025

db.NotFoundError is never raised, instead db.Get returns None.

Replace the except with an if

@sveneberth sveneberth added Priority: Critical This should be dealt with ASAP. It's blocking someone. bug Something isn't working labels Jan 15, 2025
@sveneberth sveneberth changed the title fix: db.NotFoundError is never raised, instead db.Get returns None fix: Handling of missing entity in db.increase_counter and db.write_in_transaction Jan 15, 2025
@sveneberth sveneberth merged commit 9e34940 into viur-framework:0.1 Jan 15, 2025
2 checks passed
@sveneberth sveneberth deleted the fix/dbGet_missing_entity branch January 15, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Critical This should be dealt with ASAP. It's blocking someone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant