Ignore:
Timestamp:
26 Feb 2013, 07:01:56 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not raise an exception if ticket does not exist. This happens when students use the browser's back button or click the remove button twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9984 r10001  
    14541454        for id in child_id:
    14551455            # Students are not allowed to remove used payment tickets
    1456             if not self.unremovable(self.context[id]):
     1456            ticket = self.context.get(id, None)
     1457            if ticket is not None and not self.unremovable(ticket):
    14571458                del self.context[id]
    14581459                deleted.append(id)
Note: See TracChangeset for help on using the changeset viewer.