Changeset 9700 for main/waeup.kofa


Ignore:
Timestamp:
20 Nov 2012, 10:30:30 (12 years ago)
Author:
Henrik Bettermann
Message:

Avoid KeyError? if students use the back button and try to remove a course ticket again.

File:
1 edited

Legend:

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

    r9698 r9700  
    22272227        for id in child_id:
    22282228            # Students are not allowed to remove core tickets
    2229             if self.context[id].removable_by_student:
     2229            if id in self.context and \
     2230                self.context[id].removable_by_student:
    22302231                del self.context[id]
    22312232                deleted.append(id)
Note: See TracChangeset for help on using the changeset viewer.