Ignore:
Timestamp:
29 Apr 2013, 10:09:06 (12 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback if certificate doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r9869 r10111  
    7373        student = self.student = self.context.student
    7474        certificate = getattr(student['studycourse'],'certificate',None)
     75        if certificate is None:
     76            self.flash(_("Study course data are incomplete."))
     77            self.redirect(self.url(self.context, '@@index'))
     78            return
    7579        self.amount_auth = 100 * self.context.amount_auth
    7680        xmldict = {}
Note: See TracChangeset for help on using the changeset viewer.