Ignore:
Timestamp:
11 Mar 2025, 19:29:27 (18 hours ago)
Author:
Henrik Bettermann
Message:

Remove some bugs.

File:
1 edited

Legend:

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

    r16410 r18036  
    8585                                          'secondinstal', 'clearance',):
    8686                total_amount += ticket.amount_auth
    87         if self.is_fresh:
    88             minamount = 0.4 * getattr(certificate, 'school_fee_1', 0.0)
    89         else:
    90             minamount = 0.4 * getattr(certificate, 'school_fee_2', 0.0)
    91         if total_amount >= minamount:
    92             return True
     87        try:
     88            if self.is_fresh:
     89                minamount = 0.4 * getattr(certificate, 'school_fee_1', 0.0)
     90            else:
     91                minamount = 0.4 * getattr(certificate, 'school_fee_2', 0.0)
     92            if total_amount >= minamount:
     93                return True
     94        except:
     95            pass
    9396        return False
    9497
Note: See TracChangeset for help on using the changeset viewer.