mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -63,7 +63,7 @@ def is_host_up(host: str) -> bool:
|
||||
param = "-n" if platform.system().lower() == "windows" else "-c"
|
||||
command = ["ping", param, "1", host]
|
||||
try:
|
||||
output = subprocess.call(command, timeout=PING_TIMEOUT)
|
||||
output = subprocess.call(command, timeout=PING_TIMEOUT) # noqa: S603
|
||||
except subprocess.TimeoutExpired:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user