Ignore:
Timestamp:
10 Sep 2013, 16:47:04 (11 years ago)
Author:
Henrik Bettermann
Message:

If certificate was given in import file but the parent container of an applicant doesn't exist , conversion checking exited with a traceback. We are now catching this error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/batching.py

    r10028 r10613  
    304304            # course1 application category must match container's.
    305305            parent = self.getParent(row, self.site)
    306             if cert.application_category != parent.application_category:
     306            if parent is None:
     307                errs.append(('container', 'not found'))
     308            elif cert.application_category != parent.application_category:
    307309                errs.append(('course1', 'wrong application category'))
    308310        if 'state' in row and \
Note: See TracChangeset for help on using the changeset viewer.