From 1afca3d4306f63c6ca6aefa2cd2354264f2998a0 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 12 Oct 2020 21:50:49 +0000 Subject: [PATCH] minor: Extract local for stream. --- zerver/lib/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 32d20dafc7..34567b911d 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2842,7 +2842,8 @@ def bulk_add_subscriptions(streams: Iterable[Stream], # subscription when picking colors sub.active = True for recipient_id in needs_new_sub: - new_subs.append((user_profile, recipient_id, stream_map[recipient_id])) + stream = stream_map[recipient_id] + new_subs.append((user_profile, recipient_id, stream)) subs_to_add: List[Tuple[Subscription, Stream]] = [] for (user_profile, recipient_id, stream) in new_subs: