ruff: Fix PIE810 Call startswith
once with a tuple
.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ad9c085614
commit
7aeb8f2619
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue