mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
ruff: Fix UP038 Use X | Y in isinstance call instead of (X, Y).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
0fa5e7f629
commit
1464009fae
@@ -100,7 +100,7 @@ def sentry_tunnel(
|
||||
# failing to connect at the TCP level will report as
|
||||
# ProxyErrors.
|
||||
def open_circuit_for(exc_type: type[Exception], exc_value: Exception) -> bool:
|
||||
if issubclass(exc_type, (ProxyError, Timeout)):
|
||||
if issubclass(exc_type, ProxyError | Timeout):
|
||||
return True
|
||||
if isinstance(exc_value, HTTPError):
|
||||
response = exc_value.response
|
||||
|
||||
Reference in New Issue
Block a user