From 7aeb8f261989afa95a8fb69a495051d5885a1481 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 29 Oct 2023 17:30:54 -0700 Subject: [PATCH] ruff: Fix PIE810 Call `startswith` once with a `tuple`. Signed-off-by: Anders Kaseorg --- zulip/integrations/zephyr/zephyr_mirror_backend.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zulip/integrations/zephyr/zephyr_mirror_backend.py b/zulip/integrations/zephyr/zephyr_mirror_backend.py index ec261da2..e6efc0c6 100755 --- a/zulip/integrations/zephyr/zephyr_mirror_backend.py +++ b/zulip/integrations/zephyr/zephyr_mirror_backend.py @@ -863,9 +863,11 @@ returned the following warning: {support_closing}""", ) return - elif code != 0 and ( - stderr.startswith("zwrite: Ticket expired while sending notice to ") - or stderr.startswith("zwrite: No credentials cache found while sending notice to ") + elif code != 0 and stderr.startswith( + ( + "zwrite: Ticket expired while sending notice to ", + "zwrite: No credentials cache found while sending notice to ", + ) ): # Retry sending the message unauthenticated; if that works, # just notify the user that they need to renew their tickets