Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
streams: Use "isinstance" instead of "is" for "Missing" check.
Sahil Batraad9abb8e2d1f
diff --git a/zerver/views/streams.py b/zerver/views/streams.pyindex f84b7abfd48..284e0a43ee8 100644--- a/zerver/views/streams.py+++ b/zerver/views/streams.py@@ -420,8 +420,7 @@ def update_stream_backend(check_stream_name_available(user_profile.realm, new_name)do_rename_stream(stream, new_name, user_profile)- if folder_id is not Missing:- assert not isinstance(folder_id, MissingType)+ if not isinstance(folder_id, MissingType):folder: ChannelFolder | None = Noneif folder_id is not None:folder = get_channel_folder_by_id(folder_id, user_profile.realm)