management: fix add_users_to_streams given do_add_subscriptions output change.

(imported from commit bc03ee0bd601122689e2062b6963780743ac7d27)
This commit is contained in:
Jessica McKellar 2013-02-12 10:56:37 -05:00
parent d0953bc8a1
commit 645e7d58be
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Command(BaseCommand):
for stream_name in set(stream_names):
for user_profile in user_profiles:
stream = create_stream_if_needed(user_profile.realm, stream_name)
stream, _ = create_stream_if_needed(user_profile.realm, stream_name)
did_subscribe = do_add_subscription(user_profile, stream)
print "%s %s to %s" % (
"Subscribed" if did_subscribe else "Already subscribed",