Changeset 14394 for main


Ignore:
Timestamp:
13 Jan 2017, 13:10:33 (8 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r14346 r14394  
    14601460            self.course_admitted = False
    14611461            if course_admitted is not None:
    1462                 self.course_admitted = True
    1463                 self.longtitle = course_admitted.longtitle
    1464                 self.department = course_admitted.__parent__.__parent__.longtitle
    1465                 self.faculty = course_admitted.__parent__.__parent__.__parent__.longtitle
     1462                try:
     1463                    self.course_admitted = True
     1464                    self.longtitle = course_admitted.longtitle
     1465                    self.department = course_admitted.__parent__.__parent__.longtitle
     1466                    self.faculty = course_admitted.__parent__.__parent__.__parent__.longtitle
     1467                except AttributeError:
     1468                    self.flash(_('Application record invalid.'), type='warning')
     1469                    return
    14661470            self.result = True
    14671471            self.admitted = False
Note: See TracChangeset for help on using the changeset viewer.