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
Catch database assertion when item path cannot be calculated #1217
Conversation
abraunegg
commented
Jan 9, 2021
- Catch database assertion when item path cannot be calculated
* Catch database assertion when item path cannot be calculated
Without PR:
With PR:
|
* Apply same fix for all itemdb.computePath calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, since all the cases of assertion check from computePath
are the same, wouldn't it make sense to move the check itself into the computePath
function, and exit
there?
I agree that having helper functions only doing asserts, but in this case the outcome will always be a log and exit.
* code cleanup, remove duplicate code
Yes it should be a function which is done now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks much better!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |