Ignore:
Timestamp:
29 Nov 2011, 05:35:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback if enddate is None.

File:
1 edited

Legend:

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

    r7224 r7237  
    439439        # If application has ended and applicant record doesn't exist,
    440440        # logout without marking AC as used
    441         if not pin in self.context.keys() and (
    442             self.context.enddate < date.today()):
     441        if not pin in self.context.keys() and (not self.context.enddate or
     442                                        self.context.enddate < date.today()):
    443443            self.flash('Application has ended.')
    444444            auth = getUtility(IAuthentication)
Note: See TracChangeset for help on using the changeset viewer.