Skip to content

Commit 7aeb8f2

Browse files
committed
ruff: Fix PIE810 Call startswith once with a tuple.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent ad9c085 commit 7aeb8f2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

zulip/integrations/zephyr/zephyr_mirror_backend.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,11 @@ class and your mirroring bot does not have access to the relevant \
863863
{support_closing}""",
864864
)
865865
return
866-
elif code != 0 and (
867-
stderr.startswith("zwrite: Ticket expired while sending notice to ")
868-
or stderr.startswith("zwrite: No credentials cache found while sending notice to ")
866+
elif code != 0 and stderr.startswith(
867+
(
868+
"zwrite: Ticket expired while sending notice to ",
869+
"zwrite: No credentials cache found while sending notice to ",
870+
)
869871
):
870872
# Retry sending the message unauthenticated; if that works,
871873
# just notify the user that they need to renew their tickets

0 commit comments

Comments
 (0)