Changeset 11662


Ignore:
Timestamp:
21 May 2014, 07:31:23 (10 years ago)
Author:
Henrik Bettermann
Message:

Catch TypeError? exception if amount_auth is None.

File:
1 edited

Legend:

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

    r11661 r11662  
    426426                    ticket.p_category == 'schoolfee' and \
    427427                    ticket.p_session == int(name):
    428                     value += ticket.amount_auth
     428                    try:
     429                        value += ticket.amount_auth
     430                    except TypeError:
     431                        pass
    429432            if value == 0:
    430433                value = ''
Note: See TracChangeset for help on using the changeset viewer.