Ignore:
Timestamp:
7 Sep 2023, 05:05:42 (14 months ago)
Author:
Henrik Bettermann
Message:

Catch TypeError?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r17572 r17574  
    294294        # amount due in session =  brought forward from previous sessions + school fees in session - amount paid in session
    295295        session = es
    296         sf_paid[session][2] = brought_fwd + sf_paid[session][0] - sf_paid[session][1]
     296        try:
     297            sf_paid[session][2] = brought_fwd + sf_paid[session][0] - sf_paid[session][1]
     298        except TypeError:
     299            return dict(), brought_fwd
    297300        while session < cs + 1:
    298301            session += 1
Note: See TracChangeset for help on using the changeset viewer.