Changeset 2683


Ignore:
Timestamp:
17 Nov 2007, 04:54:10 (17 years ago)
Author:
Henrik Bettermann
Message:

catch no pin in record

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2680 r2683  
    739739            return
    740740        pin_parts = brain.pin.split('-')
    741         if len(pin_parts) != 3:
    742             logger.info('invalid pin %s for %s' % (brain.pin,brain.reg_no))
     741        if pin_parts and len(pin_parts) != 3:
     742            logger.info('invalid pin %s for %s, record not imported' % (brain.pin,brain.reg_no))
    743743            return
    744744        student_id = self.generateStudentId('?')
Note: See TracChangeset for help on using the changeset viewer.