Changeset 3862 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
18 Jan 2009, 10:17:02 (16 years ago)
Author:
Henrik Bettermann
Message:

fix error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/retrieve_password.py

    r3861 r3862  
    4545                             )
    4646if psm == 'invalid':
    47     reg_no = ds.get('reg_no')
    48     email = ds.get('email')
    49     record = ds.get('record')   
    50     email_cat = record.email
    51     if email:
    52         logger.info('%s: %s does not match %s' % (reg_no,email,email_cat))
    53     else:
    54         logger.info('%s: no email provided' % (reg_no))
     47    reg_no = ds.get('reg_no')
     48    try:
     49        email = ds.get('email')
     50        record = ds.get('record')   
     51        email_cat = record.email
     52        if email:
     53            logger.info('%s: %s does not match %s' % (reg_no,email,email_cat))
     54        else:
     55            logger.info('%s: no email provided' % (reg_no))
     56    except:
     57        logger.info('wrong reg number %s' % (reg_no))
    5558    return context.retrieve_password_form(rendered = res,
    5659                                 psm = "Please correct your input!",
Note: See TracChangeset for help on using the changeset viewer.