Skip to content

Commit

Permalink
Do not explicitly begin() a transaction.
Browse files Browse the repository at this point in the history
The previous code was raising an InvalidRequestError.
  • Loading branch information
majamassarini committed Nov 12, 2024
1 parent f04011d commit 5d6bc63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packit_service/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2342,8 +2342,6 @@ def add_scan_transaction(self) -> Generator["OSHScanModel"]:
raise: IntegrityError if the scan model already exists
"""
session = singleton_session or Session()
session.begin()

try:
scan = OSHScanModel()
scan.copr_build_target = self
Expand Down

0 comments on commit 5d6bc63

Please sign in to comment.