Ignore:
Timestamp:
20 Jun 2015, 07:55:18 (9 years ago)
Author:
Henrik Bettermann
Message:

Improve interfaces for documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r13028 r13080  
    125125    @property
    126126    def translated_state(self):
    127         state = registration_states_vocab.getTermByToken(
    128             self.state).title
     127        try:
     128            state = registration_states_vocab.getTermByToken(
     129                self.state).title
     130        except LookupError:  # in unit tests
     131            return
    129132        return state
    130133
Note: See TracChangeset for help on using the changeset viewer.