Ignore:
Timestamp:
22 Mar 2021, 08:28:33 (4 years ago)
Author:
Henrik Bettermann
Message:

Catch missing schools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/export.py

    r15112 r16420  
    5050            value = getattr(context, name.replace('_name', ''), None)
    5151            if value:
    52                 value = '%s - %s - %s' % (
    53                     SCHOOLS[value][0], SCHOOLS[value][1], SCHOOLS[value][2])
     52                try:
     53                    value = '%s - %s - %s' % (
     54                        SCHOOLS[value][0], SCHOOLS[value][1], SCHOOLS[value][2])
     55                except:
     56                    pass
    5457        return super(
    5558            CustomApplicantExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.