Commits

Max Noel committed 906de73

* Transactions: status change to "running" was at the wrong line.

  • Participants
  • Parent commits 4eb4c22

Comments (0)

Files changed (1)

File dynamodb_mapper/transactions.py

         # of the transaction fails.
 
         # So if anything fails beyond this point, we must save the transaction.
+        target.save(expected_values=old_values)
         self.status = "running"
-        target.save(expected_values=old_values)
 
     def _assign_datetime_and_save(self):
         """Auto-assign a datetime to the Transaction (it's its range key)