zephyr_mirror_backend: Add missing parens for calling lower().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-08-24 20:39:31 -07:00 committed by Tim Abbott
parent ffb8a38f26
commit 5da0857d51

View file

@ -475,7 +475,7 @@ def process_notice(notice: "zephyr.ZNotice", log: Optional[IO[str]]) -> None:
# Add instances in for instanced personals # Add instances in for instanced personals
if is_personal: if is_personal:
if notice.cls.lower() != "message" and notice.instance.lower != "personal": if notice.cls.lower() != "message" and notice.instance.lower() != "personal":
heading = f"[-c {notice.cls} -i {notice.instance}]\n" heading = f"[-c {notice.cls} -i {notice.instance}]\n"
elif notice.cls.lower() != "message": elif notice.cls.lower() != "message":
heading = f"[-c {notice.cls}]\n" heading = f"[-c {notice.cls}]\n"