Changeset 15533 for main


Ignore:
Timestamp:
1 Aug 2019, 21:06:59 (5 years ago)
Author:
Henrik Bettermann
Message:

Fix TypeError?: unsupported operand type(s) for +: 'NoneType?' and 'unicode'

File:
1 edited

Legend:

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

    r15527 r15533  
    36913691        sn = 1
    36923692        ctlist = sorted(list(coursetickets),
    3693                         key=lambda value: value.student.certcode +
    3694                                           value.student.matric_number)
     3693                        key=lambda value:
     3694                        getattr(value.student, 'certcode', '') +
     3695                        getattr(value.student, 'matric_number', '')
     3696                        )
    36953697        for ticket in ctlist:
    36963698            row = [sn,
Note: See TracChangeset for help on using the changeset viewer.