We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f6e29 commit c38a840Copy full SHA for c38a840
tcp_modbus_aio/ping.py
@@ -5,7 +5,7 @@
5
async def ping_ip(ip: str, timeout: float = 0.5) -> float | None:
6
"""Return the latency in seconds of a ping to the given ip, or None if the ping failed"""
7
ping_process = await asyncio.create_subprocess_shell(
8
- f"ping -c 1 {ip}", stdout=subprocess.PIPE
+ f"ping -c 1 {ip}", stdout=subprocess.PIPE, stderr=subprocess.DEVNULL
9
)
10
11
try:
0 commit comments