app/soc/logic/models/club.py
changeset 1292 cf8b099bd787
parent 1115 0a723ff3d27c
child 1307 091a21cf3627
--- a/app/soc/logic/models/club.py	Thu Feb 12 23:26:23 2009 +0000
+++ b/app/soc/logic/models/club.py	Thu Feb 12 23:35:44 2009 +0000
@@ -65,6 +65,9 @@
           }
 
       for admin in [application.applicant, application.backup_admin]:
+        if not admin:
+          continue
+
         properties['link_id'] = admin.link_id
         key_fields = request_logic.logic.getKeyFieldsFromFields(properties)
         request_logic.logic.updateOrCreateFromFields(properties, key_fields)