Fix transaction context manager to re-raise exceptions after rollback#230
Conversation
The except block was swallowing exceptions silently after rolling back the transaction. Added `raise` to propagate the exception to the caller. Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The except block was swallowing exceptions silently after rolling back the transaction. Added
raiseto propagate the exception to the caller.Fixes this issue #195 (comment)
Summary by CodeRabbit