ruff: Fix PIE810 Call startswith once with a tuple.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-29 17:30:54 -07:00
parent ad9c085614
commit 7aeb8f2619

View file

@ -863,9 +863,11 @@ returned the following warning:
{support_closing}""", {support_closing}""",
) )
return return
elif code != 0 and ( elif code != 0 and stderr.startswith(
stderr.startswith("zwrite: Ticket expired while sending notice to ") (
or stderr.startswith("zwrite: No credentials cache found while sending notice to ") "zwrite: Ticket expired while sending notice to ",
"zwrite: No credentials cache found while sending notice to ",
)
): ):
# Retry sending the message unauthenticated; if that works, # Retry sending the message unauthenticated; if that works,
# just notify the user that they need to renew their tickets # just notify the user that they need to renew their tickets