From b14533d0b789c5df3c3002aa9ee03cf2c4dd2ac2 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Sat, 15 Jul 2017 12:57:38 -0700 Subject: [PATCH] actions: Allow leaving stream args unspecified in set_default_streams. Sets them to the create_stream_if_needed defaults. --- zerver/lib/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 5b298ec724..8d1c82e816 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2421,8 +2421,8 @@ def set_default_streams(realm, stream_dict): stream_names.append(name) stream, _ = create_stream_if_needed(realm, name, - invite_only = options["invite_only"], - stream_description = options["description"]) + invite_only = options.get("invite_only", False), + stream_description = options.get("description", '')) DefaultStream.objects.create(stream=stream, realm=realm) # Always include the realm's default notifications streams, if it exists