Skip to content

Commit

Permalink
Rollback on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 committed Jul 20, 2023
1 parent dff58f6 commit 90e4c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainframe/endpoints/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def batch_queue_package(
try:
await session.commit()
except IntegrityError:
pass
await session.rollback()


@router.post(
Expand Down

0 comments on commit 90e4c30

Please sign in to comment.