fix(data-integrity): remove session.rollback() calls from ProjectRepository

This commit is contained in:
2026-04-30 13:28:43 +00:00
committed by Forgejo
parent 2a0c1413f4
commit dba9848c10
@@ -174,7 +174,6 @@ class ProjectRepository:
project.id = db_project.id # type: ignore
return project
except (OperationalError, SQLAlchemyDatabaseError) as e:
self.session.rollback()
raise DatabaseError(f"Failed to create project: {e}") from e
@database_retry