mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-10-31 00:57:22 +09:00
The rollback guard only caught ValueError from field validation, but db.session.commit() itself can raise SQLAlchemy errors (IntegrityError, OperationalError), leaving callers a dirty session despite the comment's promise. Catch everything, roll back, re-raise. (Copilot review on #120) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>