You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👍 and we could make this context manager a ContextDecorator so that we can just add the decorator to the functions in storage.py for it to use a new session and the generic exception handling (because flat is better than nested and the diff is way smaller).
eloquence
changed the title
Handle session exceptions
Handle session exceptions using a context manager
Aug 15, 2022
Description
Handle sqlalchemy exceptions when performing database operations.
A context manager can be used to help: 4a9bd13#diff-0438bcd9fa8b6dd6a25960faa06c1452R14
The text was updated successfully, but these errors were encountered: