Changeset 5210


Ignore:
Timestamp:
1 Jun 2010, 17:55:20 (15 years ago)
Author:
Henrik Bettermann
Message:

catch traceback if clearance officer has been removed from the portal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r5191 r5210  
    743743        membership = self.portal_membership
    744744        member_record = membership.getMemberById(mid)
    745         firstname = member_record.getProperty('givenName','')
    746         lastname = member_record.getProperty('sn','')
    747         return firstname + ' ' + lastname.upper()
     745        if member_record:
     746            firstname = member_record.getProperty('givenName','')
     747            lastname = member_record.getProperty('sn','')
     748            return firstname + ' ' + lastname.upper()
     749        else:
     750            return mid
    748751    ###)
    749752
Note: See TracChangeset for help on using the changeset viewer.