Changeset 11654 for main


Ignore:
Timestamp:
15 May 2014, 10:29:32 (10 years ago)
Author:
Henrik Bettermann
Message:

Applicants don't have student attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r11652 r11654  
    106106            self.output = ERROR_PART1 + 'Invalid PAYEE_ID' + ERROR_PART2
    107107            return
    108         student = results[0].student
    109108        amount = results[0].amount_auth
    110109        payment_type = results[0].category
     
    117116            return
    118117        if PAYMENT_TYPE.startswith('SCHOOL-FEE'):
     118            try:
     119                student = results[0].student
     120            except AttributeError:
     121                self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     122                return
    119123            if not results[0].p_category.startswith('schoolfee'):
    120124                self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
Note: See TracChangeset for help on using the changeset viewer.