Changeset 14395 for main


Ignore:
Timestamp:
13 Jan 2017, 16:36:24 (8 years ago)
Author:
Henrik Bettermann
Message:

Catch AttributeError?.

File:
1 edited

Legend:

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

    r14367 r14395  
    517517            value = getattr(value, 'bed_id', None)
    518518        if name == 'actual_bed_type':
    519             value = getattr(getattr(context, 'bed', None), 'bed_type')
     519            value = getattr(getattr(context, 'bed', None), 'bed_type', None)
    520520        return super(
    521521            BedTicketExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.