Changeset 4532 for WAeUP_SRP


Ignore:
Timestamp:
11 Sep 2009, 16:01:36 (15 years ago)
Author:
Henrik Bettermann
Message:

fix traceback if course1 is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r4302 r4532  
    955955
    956956        if brain.screening_type in ('cest','sandwich',):
    957             reg_no = "%s%s/%s" % (brain.course1[:3],brain.serial,brain.entry_session)
     957            if brain.course1:
     958                reg_no = "%s%s/%s" % (brain.course1[:3],brain.serial,brain.entry_session)
     959            else:
     960                reg_no = "%s%s/%s" % (brain.course_admitted[:3],brain.serial,brain.entry_session)
    958961        else:
    959962            reg_no = brain.reg_no
Note: See TracChangeset for help on using the changeset viewer.