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

Handle the case where the cache is empty #508

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

zerc
Copy link
Contributor

@zerc zerc commented Apr 3, 2023

This was introduced in #505 and caused an error being thrown if one attempts to reset the cache of last_transition.

I think this is an edge case because you shouldn't normally do model.state_machine.reset unless you know the cache needs invalidation. But this should not throw an error regardless.

@zerc zerc self-assigned this Apr 3, 2023
zerc added 2 commits April 3, 2023 15:56
This was introduced in #505 and caused an error being thrown if one
attempts to reset the cache of `last_transition`.
@zerc zerc force-pushed the vsavin/fix-reset-for-empty-cache branch from a24dea8 to 4060a54 Compare April 3, 2023 14:56
@zerc zerc merged commit 3101b07 into master Apr 3, 2023
56 checks passed
@zerc zerc deleted the vsavin/fix-reset-for-empty-cache branch April 3, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants