Changeset 7219 for main


Ignore:
Timestamp:
26 Nov 2011, 21:41:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Catch error in test_manage_remove_department: In tests we do not necessarily have a logged-in principal. Then the logger_info raises an exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/container.py

    r7191 r7219  
    5555        """
    5656        user = get_current_principal()
     57        if user is None:
     58            # In tests we do not necessarily have a logged on principal
     59            return
    5760        user = user.id
    5861        self.logger.info('%s - %s - %s - %s' % (
Note: See TracChangeset for help on using the changeset viewer.