From 0e4de6d4e24d2fadf31bda8a771a05a3210c50b4 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 1 Mar 2024 18:33:36 -0500 Subject: [PATCH] Suppress error output in iwscan run --- comitup/iwscan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comitup/iwscan.py b/comitup/iwscan.py index 84f689c..932f23d 100644 --- a/comitup/iwscan.py +++ b/comitup/iwscan.py @@ -21,7 +21,9 @@ def docmd(cmd: str) -> str: cmd = "timeout 5 " + cmd try: - out = subprocess.check_output(cmd.split(), encoding="utf-8") + out = subprocess.check_output( + cmd.split(), encoding="utf-8", stderr=subprocess.PIPE + ) except subprocess.CalledProcessError: out = ""