Ignore:
Timestamp:
25 Jan 2008, 15:38:48 (17 years ago)
Author:
Henrik Bettermann
Message:

avoid traceback IndexError?: 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_accommodation/release_bed.py

    r3044 r3049  
    4040    if len(res) == 0:
    4141        logger.info('no bed of %s found' % (student_id))
    42         redirect("%s/%s" % (students.absolute_url(),student_id))
     42        return redirect("%s/%s" % (students.absolute_url(),student_id))
    4343    allocated_bed = res[0]
    4444    acco_cat.modifyRecord(bed=allocated_bed.bed,student=acco_cat.not_occupied)
     
    4646    acco_doc.edit(mapping={'bed':"-- cancelled by section officer --"})
    4747    logger.info('%s released bed of %s' % (member_id,student_id))
    48     redirect("%s" % (context.absolute_url()))
     48    return redirect("%s" % (context.absolute_url()))
    4949
Note: See TracChangeset for help on using the changeset viewer.