app/soc/logic/helper/notifications.py
changeset 2171 83d96aadd228
parent 2170 cec46675f866
child 2319 3eee2308f1dd
--- a/app/soc/logic/helper/notifications.py	Sun Apr 12 12:31:55 2009 +0000
+++ b/app/soc/logic/helper/notifications.py	Sun Apr 12 13:14:03 2009 +0000
@@ -125,6 +125,9 @@
   template = DEF_NEW_GROUP_TEMPLATE
 
   for to in [entity.applicant, entity.backup_admin]:
+    if not to:
+      continue
+
     sendNotification(to, None, message_properties, subject, template)