Changeset 13006
- Timestamp:
- 27 May 2015, 15:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r13003 r13006 96 96 @property 97 97 def getSessionString(self): 98 return academic_sessions_vocab.getTerm( 99 self.level_session).title 98 try: 99 session_string = academic_sessions_vocab.getTerm( 100 self.level_session).title 101 except LookupError: 102 return None 103 return session_string 100 104 101 105 @property … … 293 297 if self.student.state == VALIDATED and self.student.current_session == cas: 294 298 return True 295 except TypeError: # in unit tests299 except AttributeError: # in unit tests 296 300 pass 297 301 return False
Note: See TracChangeset for help on using the changeset viewer.