From 75d150efc735d8463443e21210fe1dc40283efea Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 24 Oct 2012 14:25:45 -0400 Subject: [PATCH] Fix being unable to send messages with a trailing comma in recipients list. (imported from commit 5c075c4aa1da8c2a153b33ed4d061fac88de48e7) --- zephyr/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/views.py b/zephyr/views.py index fd880172ef..4fe9bd8ea1 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -566,6 +566,8 @@ def send_message_backend(request, user_profile, sender, client_name=None): recipient_profile_ids = set() for recipient in huddle_recipients: + if recipient == "": + continue try: recipient_profile_ids.add(UserProfile.objects.get(user__email=recipient).id) except UserProfile.DoesNotExist: