mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
ruff: Fix RUF059 Unpacked variable is never used.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fa4d680851
commit
f24a0a6b81
@@ -128,7 +128,7 @@ def detect_narrowed_window(
|
||||
# TODO: We should support stream IDs and direct messages here as well.
|
||||
narrow_stream_name = request.GET.get("stream")
|
||||
assert narrow_stream_name is not None
|
||||
(narrow_stream, ignored_sub) = access_stream_by_name(user_profile, narrow_stream_name)
|
||||
(narrow_stream, _sub) = access_stream_by_name(user_profile, narrow_stream_name)
|
||||
narrow = [NeverNegatedNarrowTerm(operator="stream", operand=narrow_stream.name)]
|
||||
except Exception:
|
||||
logging.warning("Invalid narrow requested, ignoring", extra=dict(request=request))
|
||||
|
||||
Reference in New Issue
Block a user