Changeset 9df0f00 in rattail


Ignore:
Timestamp:
03/02/19 18:33:03 (9 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
8a535b6
Parents:
ed6ef1e
Message:

Don't raise error if "removing" a batch row which was already "removed"

just let caller assume the row was removed okay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/batch/handlers.py

    red6ef1e r9df0f00  
    429429        """
    430430        if row.removed:
    431             raise ValueError("Row is already marked as removed: {}".format(row))
     431            return
    432432        batch = row.batch
    433433        row.removed = True
Note: See TracChangeset for help on using the changeset viewer.