Correctly construct tuple

(imported from commit f85ae7b0e4c335548cbe7254e5d820ced17a50a9)
This commit is contained in:
Zev Benjamin 2012-11-06 14:20:14 -05:00
parent c5035dade0
commit 0ca46d5abe
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ def send_message_backend(request, user_profile, sender, client_name=None):
try:
recipient_profile_ids.add(UserProfile.objects.get(user__email=recipient).id)
except UserProfile.DoesNotExist:
return json_error("Invalid email '%s'" % (recipient))
return json_error("Invalid email '%s'" % (recipient,))
if len(recipient_profile_ids) > 1:
# Make sure the sender is included in the huddle
recipient_profile_ids.add(sender.id)